public ActionResult Create(DeckViewModel deckVM) { if (ModelState.IsValid) { repo.Add(ToModel(deckVM)); repo.Save(); return(RedirectToAction("Index")); } return(View(deckVM)); }