public static Entidades.EmpleadosEmails Buscar(Expression <Func <Entidades.EmpleadosEmails, bool> > criterio) { using (var conec = new DAL.Respository <Entidades.EmpleadosEmails>()) { try { return(conec.Buscar(criterio)); } catch (Exception) { throw; } } }
public static Entidades.Productos Buscar(Expression <Func <Entidades.Productos, bool> > criterio) { using (var Context = new DAL.Respository <Entidades.Productos>()) { try { return(Context.Buscar(criterio)); } catch (Exception) { throw; } } return(null); }
public static Entidades.Empleados Buscar(Expression <Func <Entidades.Empleados, bool> > criterio) { var empleado = new Entidades.Empleados(); using (var conec = new DAL.Respository <Entidades.Empleados>()) { try { empleado = conec.Buscar(criterio); if (empleado != null) { empleado.Retenciones.Count(); empleado.Relacion.Count(); } } catch (Exception) { throw; } } return(empleado); }