コード例 #1
0
 public virtual void PutUpdateBatch(TDataType[] documents)
 {
     try
     {
         _dataRepository.BatchUpdate(documents);
     }
     catch (InstanceNotFoundException)
     {
         throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound));
     }
     catch (ConcurrencyException)
     {
         throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Conflict));
     }
 }