Beispiel #1
0
 public IQueryable <Cat_EmployeeType> GetCatEmployeeTypes()
 {
     using (var context = new VnrHrmHrDataContext())
     {
         IUnitOfWork unitOfWork          = (IUnitOfWork)(new UnitOfWork(context));
         Cat_EmployeeTypeRepository repo = new Cat_EmployeeTypeRepository(unitOfWork);
         return(repo.GetAllCatEmployeeTypes().Where(i => i.IsDelete == null));
     }
 }
Beispiel #2
0
        public IQueryable<Cat_EmployeeType> GetCatEmployeeTypes()
        {
            using (var context = new VnrHrmHrDataContext())
            {
                IUnitOfWork unitOfWork = (IUnitOfWork)(new UnitOfWork(context));
                Cat_EmployeeTypeRepository repo = new Cat_EmployeeTypeRepository(unitOfWork);
                return repo.GetAllCatEmployeeTypes().Where(i => i.IsDelete == null);

            }
        }