public List <BE.Record> ListarSexos() { List <BE.Record> lst = new List <BE.Record>(); try { var daCategoria = new DA.Categoria(); DataTable dt = daCategoria.Listar((int)BE.TipoEnum.Sexo); lst = this.Convertir(dt); return(lst); } catch (Exception ex) { throw ex; } }
public BE.Record ObtenerSexo(string codigo) { try { var daCategoria = new DA.Categoria(); DataTable dt = daCategoria.Listar((int)BE.TipoEnum.Sexo); List <BE.Record> lstRecord = this.Convertir(dt); var beRecord = lstRecord.FirstOrDefault(obj => obj.Codigo == codigo); return(beRecord); } catch (Exception ex) { throw ex; } }