Example #1
0
        public ActionResult Details(int id)
        {
            Walker       walker = _walkerRepo.GetWalkerById(id);
            List <Walks> walks  = _walksRepo.GetAllWalks();
            List <Owner> owner  = _ownerRepo.GetOwners();

            WalkerFormViewModel vm = new WalkerFormViewModel()
            {
                Walker = walker,
                Walks  = walks,
                Owners = owner
            };

            if (walker == null)
            {
                return(NotFound());
            }
            else
            {
                return(View(vm));
            }
        }
Example #2
0
 public List <Walks> GetAllWalks()
 {
     return(_walksRepo.GetAllWalks());
 }
Example #3
0
        // GET: WalksCOntroller
        public IActionResult Index()
        {
            List <Walks> walks = _walksRepo.GetAllWalks();

            return(View(walks));
        }