Исправление

This commit is contained in:
prodigygirl 2023-04-18 16:28:23 +04:00
parent 57510cd655
commit a118b8fd98

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;
}