示例#1
0
        public GetPublishersResponse GetPublishers()
        {
            var response = new GetPublishersResponse();

            try
            {
                response.Publishers = _repository.FindAll().MapToPublishersView();
                response.Success    = true;
            }
            catch (Exception ex) {
                response.Success    = false;
                response.Publishers = new List <Publisher>();
            }

            return(response);
        }
示例#2
0
 public async Task <IList <Publisher> > FindAll()
 {
     return(await publisherRepository.FindAll());
 }