Модель
This commit is contained in:
parent
f997e6fc06
commit
90dd93ef7a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user