public async Task <ICollection <BookStoryOutputModel> > GetStoriesAsync(int bookId) { var bookStories = await _storyBooksRepository.GetAsync(null, bookId); try { return(Mapper.Map <ICollection <BookStoryOutputModel> >(bookStories)); } catch (Exception) { return(null); } }
public async Task <ICollection <BookPublisherOutputModel> > GetPublishersAsync(int bookId) { var bookPublishers = await _bookPublishersRepository.GetAsync(bookId, null); try { return(Mapper.Map <ICollection <BookPublisherOutputModel> >(bookPublishers)); } catch (Exception) { return(null); } }
public async Task <ICollection <CharacterStoryOutputModel> > GetStoriesAsync(int characterId) { var storyCharacters = await _storyCharactersRepository.GetAsync(null, characterId); try { return(Mapper.Map <ICollection <CharacterStoryOutputModel> >(storyCharacters)); } catch (Exception) { return(null); } }
public async Task <ICollection <ArtistStoryOutputModel> > GetStoriesAsync(int artistId) { var storyArtists = await _storyArtistsRepository.GetAsync(null, artistId); try { return(Mapper.Map <ICollection <ArtistStoryOutputModel> >(storyArtists)); } catch (Exception) { return(null); } }
public async Task <ICollection <SeriesBookOutputModel> > GetBooksAsync(int seriesId) { var bookSeries = await _bookSeriesRepository.GetAsync(null, seriesId); try { return(Mapper.Map <ICollection <SeriesBookOutputModel> >(bookSeries)); } catch (Exception) { return(null); } }
public async Task <ICollection <StoryCharacterOutputModel> > GetCharactersAsync(int storyId) { var storyCharacters = await _storyCharactersRepository.GetAsync(storyId, null); try { return(Mapper.Map <ICollection <StoryCharacterOutputModel> >(storyCharacters)); } catch (Exception) { return(null); } }