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());
 }