Borschevskaya A.A. Lab Work 4 Hard #8

Closed
pgirl1 wants to merge 31 commits from lab4_hard into lab3_hard
Showing only changes of commit 2569ac535b - 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;
}