Beispiel #1
0
 public HttpResponseMessage AddObjectiveRating([FromBody] UserRatingDto rating)
 {
     try
     {
         _objectiveService.AddObjectiveRating(rating);
         return(Request.CreateResponse(HttpStatusCode.Created, "Successfully added the rating!"));
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }