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)); }
// ************************** // URL: /Manager/Area/Details/5 // ************************** public ActionResult Details(int id) { var area = _areaRepository.FindById(id); return(View(area)); }