public ActionResult Create(Division division) { try { // TODO: Add insert logic here DivisionRepo divisionRepo = new DivisionRepo(); string msg = divisionRepo.InsertDivision(division); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(Division division) { try { // TODO: Add insert logic here DivisionRepo divisionRepo = new DivisionRepo(); string msg = divisionRepo.InsertDivision(division); return(RedirectToAction("Index")); } catch { return(View()); } }