Borschevskaya A.A. Lab Work 3 Hard #7

Closed
pgirl1 wants to merge 16 commits from lab3_hard into lab2_hard
Showing only changes of commit a118b8fd98 - Show all commits

View File

@ -160,8 +160,11 @@ namespace FurnitureAssemblyDatabaseImplement.Implements
return null;
}
shop.Update(model);
context.SaveChanges();
shop.UpdateFurnitures(context, model);
if (model.Furnitures.Count > 0)
{
shop.UpdateFurnitures(context, model);
}
context.SaveChanges();
transaction.Commit();
return shop.GetViewModel;
}