public HomeController( IJokesApiClient jokesWebServiceClient) { this.mappingConfig = new MapperConfiguration(config => config.CreateMap <JokesLanguageCategoryModel, HomeViewModel.JokesLanguageCategoryModel>()); this.mappingConfig = new MapperConfiguration(config => config.CreateMap <JokesLanguageModel, HomeViewModel.JokesLanguageModel>()); this.mappingConfig = new MapperConfiguration(config => config.CreateMap <JokeModel, HomeViewModel.JokeModel>()); this.jokesWebServiceClient = jokesWebServiceClient; }
public UploadController( IJokesApiClient jokesWebServiceClient) { this.jokesWebServiceClient = jokesWebServiceClient; }