private void DeleteBlob(HeroPhoto photo)
 {
     var cloud = new CloudDataAccess();
     cloud.DeleteBlob("images/hero", photo.HeroId.ToString(), photo.PhotoUri);
 }
 private void GetBlobs(IEnumerable<Hero> heros, CloudDataAccess cloud)
 {
     foreach (var item in heros)
     {
         GetBlobs(item, cloud);
     }
 }
 private void GetBlobs(Hero hero, CloudDataAccess cloud)
 {
     if (hero.HeroId.HasValue)
     {
         var baseUri = cloud.GetBaseUri("images/hero", hero.HeroId.ToString());
         GetBlobs(baseUri, hero.Photos);
     }
 }
 private void SaveBlobs(int heroId, IEnumerable<IPostedFile> photos)
 {
     var cloud = new CloudDataAccess();
     foreach (var item in photos)
     {
         cloud.AddBlob("images", string.Format("hero/{0}/{1}", heroId, Path.GetFileName(item.FileName)), item.Stream, item.ContentType);
     }
 }