Пример #1
0
        public IActionResult GetList()
        {
            var athletes = _athleteService.GetAll();

            /*AthleteListViewModel model = new AthleteListViewModel
             * {
             *  Athletes = athletes
             * };*/
            return(Ok(athletes));
        }
Пример #2
0
 public ActionResult <IEnumerable <Athlete> > GetAthlets()
 {
     return(Ok(athleteService.GetAll()));
 }