Ejemplo n.º 1
0
        public Client GetClientById(int id)
        {
            var spec = new ClientFilterSpecification(id);

            return(clientRepository.GetSingleBySpec(spec));
        }
Ejemplo n.º 2
0
        public async Task <IEnumerable <Client> > GetByKeywordAsync(string keyword)
        {
            var filter = new ClientFilterSpecification(keyword);

            return(await clientRepository.ListAsync(filter));
        }