// GET: Walkers/Details/5 public ActionResult Details(int id) { Walker walker = _walkerRepo.GetWalkerById(id); List <Walk> walks = _walkRepo.GetWalksById(id); Neighborhood hood = _neighborRepo.GetNeighborhoodById(walker.NeighborhoodId); string walkTotal = _walkRepo.WalkTime(walks); //int walkId = walk.DogId; //Owner owner = _walkRepo.GetOwner(walk.DogId); //Owner owner = _ownerRepo.GetOwnerByDog; ProfileViewModel vm = new ProfileViewModel() { Walker = walker, Walks = walks, Hood = hood, WalkTotal = walkTotal }; if (vm.Walker == null) { return(NotFound()); } return(View(vm)); }