This commit is contained in:
Denis 2023-04-29 16:55:23 +04:00
parent 503c053836
commit f47f9a1fc2
2 changed files with 1 additions and 7 deletions

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()