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

            var speciality = await _specialityRepository.GetSpecialitiesAsync(id.Value);

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

            return(View(speciality));
        }