public ActionResult Create(Nse nse) { if (ModelState.IsValid) { _nseService.Create(nse); return(RedirectToAction(nameof(Index))); } return(View(nse)); }
public ActionResult Create(Nse nse) { if (ModelState.IsValid) { nseService.Create(nse); return(RedirectToAction(nameof(Index))); } return(View(nse)); /*try * { * // TODO: Add insert logic here * * return RedirectToAction(nameof(Index)); * } * catch * { * return View(nse); * }*/ }