Example #1
0
 public virtual void PutUpdate(TDataType document)
 {
     try
     {
         _dataRepository.Update(document);
     }
     catch (InstanceNotFoundException)
     {
         throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound));
     }
     catch (ConcurrencyException)
     {
         throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Conflict));
     }
 }