Example #1
0
 /// <summary>
 /// Lấy tất cả dữ liệu
 /// </summary>
 /// <returns></returns>
 public IQueryable <Cat_DayOff> GetAll()
 {
     using (var context = new VnrAttendanceDataContext())
     {
         IUnitOfWork          unitOfWork = (IUnitOfWork)(new UnitOfWork(context));
         Cat_DayOffRepository repo       = new Cat_DayOffRepository(unitOfWork);
         return(repo.GetAllCatDayOff().Where(i => i.IsDelete == null));
     }
 }
Example #2
0
        /// <summary>
        /// Lấy tất cả dữ liệu
        /// </summary>
        /// <returns></returns>
        public IQueryable<Cat_DayOff> GetAll()
        {
            using (var context = new VnrAttendanceDataContext())
            {
                IUnitOfWork unitOfWork = (IUnitOfWork)(new UnitOfWork(context));
                Cat_DayOffRepository repo = new Cat_DayOffRepository(unitOfWork);
                return repo.GetAllCatDayOff().Where(i => i.IsDelete == null);

            }
        }