Musoev D.T. LabWork_4 Base #4
@ -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");
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user