public async Task <IActionResult> Index() { var api = _configuration["DependencesServicesUrl:PodlerApi"]; var categories = await _podlerApiService.GetCategoriesAsync(); var viewModel = new HomeViewModel(api, categories); return(View(viewModel)); }
public async Task <IActionResult> AddComic() { var categories = await _podlerApiService.GetCategoriesAsync(); var designers = await _podlerApiService.GetDesignersAsync(); var publishers = await _podlerApiService.GetPublishersAsync(); var authors = await _podlerApiService.GetAuthorsAsync(); var viewModel = new AddComicViewModel(categories, authors, designers, publishers); return(View(viewModel)); }