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); }
public async Task <IList <Publisher> > FindAll() { return(await publisherRepository.FindAll()); }