public ActionResult Create([Bind(Exclude = "Id")] Route route) { try { if (ModelState.IsValid) { routeRepository.InsertRoute(route); return(RedirectToAction("Index")); } else { return(View(route)); } } catch { return(View(route)); } }
public ActionResult Create([Bind(Exclude = "Id")] Route route) { try { if (ModelState.IsValid) { routeRepository.InsertRoute(route); return(RedirectToAction("Index")); } else { return(View(route)); } } catch { return(View(route)); } }