Beispiel #1
0
        public async Task <IActionResult> GetTrainers()
        {
            var trainer = await _trainerService.GetTrainersAsync();

            if (trainer == null)
            {
                return(NotFound());
            }
            return(Ok(trainer));
        }