public ActionResult <Trainer> GetByName(string name)
        {
            var repo    = new TrainerRepository();
            var trainer = repo.Get(name);

            return(trainer);
        }
Exemplo n.º 2
0
        public ActionResult <Trainer> GetByName(string name)
        {
            var trainer = _repo.Get(name);

            return(trainer);
        }