Пример #1
0
        public IEnumerable <ExpectedReceipt> GetReceipt(DateTime from, DateTime to, int take, string status, bool isActive, long customerId)
        {
            var statusId = _statusRepository.GetByStatus(status).Id;
            Func <ExpectedReceipt, bool> predicate = (x => x.DateCreated >= from && x.DateCreated <= to && x.StatusId == statusId && x.CustomerId == x.CustomerId && x.IsActive == isActive);

            return(_expectedReceiptRepository.GetReceipt(predicate));
        }