Exemple #1
0
        public IHttpActionResult GetAtheletesByCoach(int id)
        {
            List <AthleteDTO> atheletesFinded;

            try
            {
                atheletesFinded = atheleteService.atheletesByCoachId(id);
            }
            catch (Exception e)
            {
                return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e.ToString())));
            }

            return(Ok(atheletesFinded));
        }