public ActionResult Create(area a) { try { if (model.InsertarArea(a).Equals("OK")) { return(RedirectToAction("Index")); } else { return(RedirectToAction("Create")); } } catch (Exception) { return(View()); } }
public ActionResult Create(area a) { try { if (model.InsertarArea(a).Equals("OK")) { return(RedirectToAction("Index")); } else { return(RedirectToAction("Create")); } } catch (Exception) { return(View()); } }