示例#1
0
        public IActionResult Details(long?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var nationality           = _nationality.GetNationality((long)id);
            var nationalityviewModels = _mapper.Map <NationalityViewModel>(nationality);

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

            return(View(nationalityviewModels));
        }