Модель

This commit is contained in:
dasha 2023-03-19 12:20:57 +04:00
parent f997e6fc06
commit 90dd93ef7a

View File

@ -42,8 +42,7 @@ namespace SushiBarFileImplement.Implements
{
var viewModel = order.GetViewModel;
var sushi = source.ListSushi.FirstOrDefault(x => x.Id == order.SushiId);
if (sushi == null) return null;
viewModel.SushiName = sushi.SushiName;
if (sushi != null) viewModel.SushiName = sushi.SushiName;
return viewModel;
}
public OrderViewModel? Insert(OrderBindingModel model)