Exemplo n.º 1
0
        /// <summary>
        /// Главная страницы
        /// </summary>
        /// <returns></returns>
        public async Task <IActionResult> Index()
        {
            // пример запроса к апи
            var response = await _solutionApiClient.GetAllCategoriesAsync();

            ViewBag.Categories = response.Data;
            return(View());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> AddPersonalSolution()
        {
            var categories = await _solutionApiClient.GetAllCategoriesAsync();

            ViewBag.Categories = categories.Data;
            return(View());
        }