public async Task <IEnumerable <Bill> > FetchByUserAsync(string userId) { var spec = new BillFilterSpecification(new User { Id = userId }); return(await _billRepository.ListAsync(spec)); }
public Bill GetById(int id) { var spec = new BillFilterSpecification(id); return(_billRepository.GetSingleBySpec(spec)); }
public async Task <IEnumerable <Bill> > FetchByUserAsync(User user, Plan plan) { var spec = new BillFilterSpecification(user, plan); return(await _billRepository.ListAsync(spec)); }