public IActionResult Create(FoodTruckCreateViewModel model) { model.Persist(context); return(RedirectToAction(actionName: nameof(Index))); //return View(model); }
public IActionResult Create(FoodTruckCreateViewModel model) { model.Persist(repositoryFactory); return(View()); }
public IActionResult Create() { FoodTruckCreateViewModel model = new FoodTruckCreateViewModel(); return(View(model)); }
public IActionResult Create() { FoodTruckCreateViewModel model = FoodTruckCreateViewModel.GetFoodTruckCreateViewModel(); return(View()); }