// GET: ProjectManagers/Details/5 public ActionResult Details(int id) { if (!_repo.isExists(id)) { return(NotFound()); } var ProjectManager = _repo.FindById(id); var model = _mapper.Map <ProjectManagerViewModel>(ProjectManager); return(View(model)); }