private Task <IList <Loan> > GetLoansBetweenUsers(Guid loanerId, Guid loaneeId, Guid?groupContextId) { var filterData = new LoanFilterInfo() { LoaneeId = loaneeId, LoanerId = loanerId, GroupId = groupContextId, }; var dbFilter = loanDbFilterFactory.Create(filterData); return(loanRepository.GetAllAsync(dbFilter)); }
public Task <IList <Loan> > GetFilteredLoansAsync(LoanFilterInfo loanFilterInfo) { var filter = loanDbFilterFactory.Create(loanFilterInfo); return(loanRepository.GetAllAsync(filter)); }