Example #1
0
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var viewModel = await _service.GetSectorWithIncludes(id);

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

            return(View(viewModel));
        }