public ActionResult Create(CSite o_site) { try { // TODO: Add insert logic here o_site.Insert(); return(RedirectToAction("Index")); } catch (Exception ex) { ViewBag.Error = ex.Message; return(View()); } }
public ActionResult Create(CSite o_site) { try { // TODO: Add insert logic here o_site.Insert(); return(RedirectToAction("Index")); } catch (Exception ex) { ViewBag.Error = ex.Message; return(View()); } }