Beispiel #1
0
 public ActionResult Eliminar(TipoIdentificacion tipoidentificacion)
 {
     try
     {
         if (ObjTipoIdentificacion.EliminaTipoIdentificacion(tipoidentificacion.IdTipoIdentificacion))
         {
             return(RedirectToAction("Index"));
         }
         //else
         {
             return(View());
         }
     }
     catch (Exception ex)
     {
         return(new HttpNotFoundResult("Error al consultar la Unidad"));
     }
 }
Beispiel #2
0
        public ActionResult Eliminar(TipoIdentificacion tipoIdentificacion)
        {
            try
            {
                if (ObjTipoIdentificacion.EliminaTipoIdentificacion(tipoIdentificacion.IdTipoIdentificacion))
                {
                    return(RedirectToAction("index"));
                }
                else
                {
                    return(View(tipoIdentificacion));
                }
            }
            catch (Exception)
            {
                return(View(tipoIdentificacion));

                throw;
            }
        }