Esempio n. 1
0
 public IActionResult Create(FoodTruckCreateViewModel model)
 {
     model.Persist(context);
     return(RedirectToAction(actionName: nameof(Index)));
     //return View(model);
 }
Esempio n. 2
0
 public IActionResult Create(FoodTruckCreateViewModel model)
 {
     model.Persist(repositoryFactory);
     return(View());
 }
Esempio n. 3
0
        public IActionResult Create()
        {
            FoodTruckCreateViewModel model = new FoodTruckCreateViewModel();

            return(View(model));
        }
Esempio n. 4
0
        public IActionResult Create()
        {
            FoodTruckCreateViewModel model = FoodTruckCreateViewModel.GetFoodTruckCreateViewModel();

            return(View());
        }