Пример #1
0
 public ActionResult Nuevo(tbl_periodo_evaluacion_Info item)
 {
     try
     {
         var model = new object[0];
         if (ModelState.IsValid)
         {
             try
             {
                 periodo_data.guardarDB(item);
             }
             catch (Exception e)
             {
                 ViewData["EditError"] = e.Message;
             }
         }
         else
         {
             ViewData["EditError"] = "Please, correct all errors.";
         }
         return(RedirectToAction("Index", "Periodo_evaluacion"));
     }
     catch (Exception)
     {
         throw;
     }
 }