public IHttpActionResult Get() { List <week> weeks; try { weeks = weekService.findAll(); } catch (Exception e) { return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e.ToString()))); } return(Ok(weeks)); }