Exemplo n.º 1
0
        public async Task <IEnumerable <Bill> > FetchByUserAsync(string userId)
        {
            var spec = new BillFilterSpecification(new User {
                Id = userId
            });

            return(await _billRepository.ListAsync(spec));
        }
Exemplo n.º 2
0
        public Bill GetById(int id)
        {
            var spec = new BillFilterSpecification(id);

            return(_billRepository.GetSingleBySpec(spec));
        }
Exemplo n.º 3
0
        public async Task <IEnumerable <Bill> > FetchByUserAsync(User user, Plan plan)
        {
            var spec = new BillFilterSpecification(user, plan);

            return(await _billRepository.ListAsync(spec));
        }