Exemplo n.º 1
0
        public IHttpActionResult GetWeeksByMesocycles(int id)
        {
            List <week> weekssFinded;

            try
            {
                weekssFinded = weekService.weeksByMesocycleId(id);
            }
            catch (Exception e)
            {
                return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e.ToString())));
            }

            return(Ok(weekssFinded));
        }