Beispiel #1
0
 public HttpResponseMessage Put(Snapshot snapshot)
 {
     try
     {
         _repository.UpdateOrInsert(snapshot);
         return(Request.CreateResponse(HttpStatusCode.NoContent));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex));
     }
 }