Пример #1
0
        public static void SelectDish(Dish dish)
        {
            SelectDish selectDish = new SelectDish();

            SelectedDishViewModel selectedDishViewModel = selectDish.DataContext as SelectedDishViewModel;

            if (selectedDishViewModel != null)
            {
                selectedDishViewModel._dish = dish;
            }
            selectDish.ShowDialog();
        }
 public ActionResult OrderDishToTable(SelectedDishViewModel model)
 {
     return(View("~/Views/OrderDish/OrderDishToTableResult.cshtml", model.SelectedDish));
 }