示例#1
0
 public static List <Estado> ObtenerEstados()
 {
     try
     {
         return(EstadoModelo.ObtenerEstados());
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#2
0
 public static Estado BuscarEstadoPorID(int id)
 {
     try
     {
         if (id <= 0)
         {
             throw new Exception("ID no valido");
         }
         return(EstadoModelo.BuscarEstadoPorID(id));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }