Exemple #1
0
        public IActionResult GetList()
        {
            var athletes = _athleteService.GetAll();

            /*AthleteListViewModel model = new AthleteListViewModel
             * {
             *  Athletes = athletes
             * };*/
            return(Ok(athletes));
        }
 public ActionResult <IEnumerable <Athlete> > GetAthlets()
 {
     return(Ok(athleteService.GetAll()));
 }