public static List <Estado> ObtenerEstados() { try { return(EstadoModelo.ObtenerEstados()); } catch (Exception ex) { throw new Exception(ex.Message); } }
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); } }