public HttpResponseMessage Pending([FromBody]RavenConfigModel configModel)
{
var config = this.LoadConfig();
ThrowIfEtagDoesNotMatch(config.Pending, configModel.Etag);
Mapper.Map<RavenConfigModel, RavenConfig>(configModel, config.Pending);
this.RavenSession.Store(config.Pending, RavenConfig.PendingDocumentId);
this.RavenSession.SaveChanges();
var newEtag = this.RavenSession.Advanced.GetEtagFor(config.Pending).Value;
return this.GetCreatedResponse(newEtag);
}