Musoev D.T. LabWork_4 Base #4

Closed
Denis wants to merge 3 commits from LabWork_4 into LabWork_3
2 changed files with 1 additions and 7 deletions
Showing only changes of commit f47f9a1fc2 - Show all commits

View File

@ -90,7 +90,7 @@ namespace FlowerShopBusinessLogic.BusinessLogics
{
model.DateImplement = viewModel.DateImplement;
}
CheckModel(model);
CheckModel(model, false);
if (_orderStorage.Update(model) == null)
{
_logger.LogWarning("Change status operation failed");

View File

@ -66,14 +66,8 @@ namespace FlowerShopFileImplement.Models
{
return;
}
BouquetId = model.BouquetId;
Count = model.Count;
Sum = model.Sum;
Status = model.Status;
DateCreate = model.DateCreate;
DateImplement = model.DateImplement;
Id = model.Id;
}
public OrderViewModel GetViewModel => new()