예제 #1
0
        public ActionResult Details(int id)
        {
            if (!_areaRepository.isExists(id))
            {
                return(NotFound());
            }

            var Country = _areaRepository.FindById(id);
            var model   = _mapper.Map <DetailsAreaViewModel>(Country);

            return(View(model));
        }
예제 #2
0
        // **************************
        // URL: /Manager/Area/Details/5
        // **************************

        public ActionResult Details(int id)
        {
            var area = _areaRepository.FindById(id);

            return(View(area));
        }