public async Task <IActionResult> Index() { var categories = await _categoryApiService.GetAllAsyncFromApi(); return(View(_mapper.Map <IEnumerable <CategoryDto> >(categories))); }