фикс удаления

This commit is contained in:
Данила Мочалов 2023-02-26 23:22:27 +04:00
parent 0b14399022
commit ccfe49dde9
3 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ namespace LawFirmFileImplement.Implements
{ {
return null; return null;
} }
blank.Update(model); source.Blanks.Remove(blank);
source.SaveBlanks(); source.SaveBlanks();
return blank.GetViewModel; return blank.GetViewModel;
} }

View File

@ -78,7 +78,7 @@ namespace LawFirmFileImplement.Implements
{ {
return null; return null;
} }
document.Update(model); source.Documents.Remove(document);
source.SaveDocuments(); source.SaveDocuments();
return document.GetViewModel; return document.GetViewModel;
} }

View File

@ -78,7 +78,7 @@ namespace LawFirmFileImplement.Implements
{ {
return null; return null;
} }
order.Update(model); source.Orders.Remove(order);
source.SaveOrders(); source.SaveOrders();
return order.GetViewModel; return order.GetViewModel;
} }