예제 #1
0
        public IHttpActionResult GetAtheletesByCoachSub12(int id)
        {
            List <AthleteDTO> atheletesFinded;

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

            return(Ok(atheletesFinded));
        }