// GET: Race/Create public ActionResult Create() { var rvm = new CreateRaceViewModel(DbContext); rvm.InitModel(); return(View(rvm)); }
public ActionResult Create(CreateRaceViewModel crvm) { try { // TODO: Add insert logic here return(RedirectToAction(nameof(Index))); } catch { return(View()); } }