Пример #1
0
        public List <Leave> GetPendingLeaves()
        {
            var currentDate   = DateTime.UtcNow.Date;
            var pendingLeaves = _leaveRepository.GetAllBy(l => l.Status == LeaveStatus.Pending && l.End < currentDate);

            return(pendingLeaves.ToList());
        }