// GET: Types public ActionResult Index() { TypeIndexViewModel typeIndexViewModel = new TypeIndexViewModel(); typeIndexViewModel.Types = db.Types.ToList(); return(View(typeIndexViewModel)); }
public IActionResult Types() { var model = new TypeIndexViewModel { Types = _modelFetcher.GetAllTypeViewModels() }; return(View(model)); }