示例#1
0
        public async Task <IReadOnlyList <InmateBill> > GetBillsFOrInmateAsync(int inmateId)
        {
            var billspec = new BillForInmateWithBillDetailsSpecification(inmateId);

            return(await _unitOfWork.Repository <InmateBill>().
                   FindAllBySpecAsync(billspec));
        }
示例#2
0
        public async Task <int> GetInmateBillsCountAsync(BillFilter filter)
        {
            var spec = new BillForInmateWithBillDetailsSpecification(filter, true);

            return(await _unitOfWork.Repository <InmateBill>().GetCountForSpecAsync(spec));
        }
示例#3
0
        public async Task <IReadOnlyList <InmateBill> > GetInmateBillsAsync(BillFilter filter)
        {
            var spec = new BillForInmateWithBillDetailsSpecification(filter);

            return(await _unitOfWork.Repository <InmateBill>().FindAllBySpecAsync(spec));
        }