ПИбд-23 Салин Олег Алексеевич Лабораторная работа №4 (Усложненная) #18

Closed
Oleja123 wants to merge 30 commits from Lab4_Hard into Lab4
Showing only changes of commit 81d5dd80b3 - Show all commits

View File

@ -90,7 +90,7 @@ namespace IceCreamShopDatabaseImplement.Models
if (shopIceCreams != null && shopIceCreams.Count > 0)
{
context.ShopIceCreams.RemoveRange(shopIceCreams.Where(rec
=> !model.ShopIceCreams.ContainsKey(rec.ShopId)));
=> !model.ShopIceCreams.ContainsKey(rec.IceCreamId)));
context.SaveChanges();
foreach (var updateIceCream in shopIceCreams)