public ActionResult Create(Category category) { try { dbCategory.AddEntity(category); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }