Esempio n. 1
0
 public ActionResult Delete(int id, FormCollection collection)
 {
     try
     {
         if (model.EliminarArea(id).Equals("OK"))
         {
             return(RedirectToAction("Index"));
         }
         else
         {
             return(RedirectToAction("Delete"));
         }
     }
     catch (Exception)
     {
         return(View());
     }
 }