示例#1
0
 public string eliminarPeriodo(string numero)
 {
     try
     {
         if (periodo.ConsultarExistePeriodo(numero))
         {
             int idPeriodo = periodo.IDPeriodoExistente(numero);
             int resp      = periodo.EliminarPeriodo(idPeriodo);
             if (resp == 1)
             {
                 return("1");
             }
             else
             {
                 return("Error al momento de eliminar periodo.");
             }
         }
         else
         {
             return("El periodo no esta registrado"); //404
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }