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