Пример #1
0
        public async Task <IActionResult> Index(int id)
        {
            var category = await _interviewService.GetCategoryAsync(id);

            if (category == null)
            {
                return(NotFound());
            }

            var viewModel = ViewModelBuilder.GetInterviewViewModel(category);

            return(View(viewModel));
        }