// GET: WalkersController/Details/5 public ActionResult Details(int id) { Walker walker = _walkerRepo.GetWalkerById(id); List <Walk> walk = _walkRepo.GetWalkByWalkerId(walker.Id); WalkerProfileViewModel vm = new WalkerProfileViewModel() { Walks = walk, Walker = walker }; return(View(vm)); }