public List <JokeUiModel> GetAllFavouriteJokes() { var jokeDomainModels = _jokeRepository.GetAllFavouriteJokes(); var jokeUiModels = jokeDomainModels.ConvertAll(jk => _jokeLogicMapper.MapToUiModel(jk)); return(jokeUiModels); }
public List <JokeUiModel> GetAllFavouriteJokes() { var jokeDomainModels = _jokeRepository.GetAllFavouriteJokes(); var jokeUiModels = jokeDomainModels.ConvertAll(jk => _jokeLogicMapper.MapToUiModel(jk)); return(jokeUiModels); }