public IActionResult CreateDojo(DojoVM model) { if (ModelState.IsValid) { Dojo dojo = new Dojo { name = model.name, location = model.location, information = model.information, }; _dojoFactory.Create(dojo); return(RedirectToAction("Index")); } return(View("Index")); }