/// <summary> /// Главная страницы /// </summary> /// <returns></returns> public async Task <IActionResult> Index() { // пример запроса к апи var response = await _solutionApiClient.GetAllCategoriesAsync(); ViewBag.Categories = response.Data; return(View()); }
public async Task <IActionResult> AddPersonalSolution() { var categories = await _solutionApiClient.GetAllCategoriesAsync(); ViewBag.Categories = categories.Data; return(View()); }