Exemplo n.º 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));
            }
        }
Exemplo n.º 2
0
 public List <Walks> GetAllWalks()
 {
     return(_walksRepo.GetAllWalks());
 }
Exemplo n.º 3
0
        // GET: WalksCOntroller
        public IActionResult Index()
        {
            List <Walks> walks = _walksRepo.GetAllWalks();

            return(View(walks));
        }