// PUT: api/TrainingPlans/5
 public IHttpActionResult Put(int id, [FromBody] trainingPlan value)
 {
     try
     {
         value.id = id;
         return(ResponseMessage(Request.CreateResponse(new
         {
             response = userService.updateTrainingPlan(value)
         })));
     }
     catch (Exception e)
     {
         return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e.ToString())));
     }
 }