Как я это допустил...
This commit is contained in:
parent
e9f66a28a1
commit
81d5dd80b3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user