public HttpResponseMessage CreateAction([FromBody] DBModel.Models.Action action)
 {
     try
     {
         DBModel.Models.Action newAction = _modelsManager.AddAction(action.ProjectId, action.Parties, action.Description, action.Comment, action.Priority);
         return(new Response(JObject.FromObject(newAction)));
     }
     catch (Exception ex)
     {
         return(new Response(ex));
     }
 }
 public HttpResponseMessage UpdateAction(int id, [FromBody] DBModel.Models.Action action)
 {
     try
     {
         DBModel.Models.Action updatedAction = _modelsManager.UpdateAction(id, action.Parties, action.Description, action.Comment, action.Priority, action.Status);
         return(new Response(JObject.FromObject(updatedAction)));
     }
     catch (Exception ex)
     {
         return(new Response(ex));
     }
 }
 public HttpResponseMessage GetMyAction(int id)
 {
     try
     {
         DBModel.Models.Action action = _modelsManager.GetMyAction(id);
         return(new Response(JObject.FromObject(action)));
     }
     catch (Exception ex)
     {
         return(new Response(ex));
     }
 }