Exemple #1
0
 public void AddBucket(Bucket bucket)
 {
     using (var session = documentStore.OpenSession())
       {
     session.Store(bucket);
     session.SaveChanges();
       }
 }
Exemple #2
0
        private Response AddBucket(string bucketName)
        {
            var bucket = new Bucket { Id = bucketName, CreationDate = DateTime.UtcNow };
              storage.AddBucket(bucket);

              var response = new Response { StatusCode = HttpStatusCode.OK };
              return response;
        }