Beispiel #1
0
 public HttpResponseMessage DeleteObjective([FromUri] Guid id)
 {
     try
     {
         _objectiveService.DeleteObjective(id);
         return(Request.CreateResponse(HttpStatusCode.OK, "Objective successfully deleted!"));
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }