protected void XoaAlbum(PicasaEntry entry)
        {
            try
            {
                //xac nhan truoc khi xoa
                AlbumAccessor album = new AlbumAccessor(entry);
                DialogResult rs = MessageBox.Show("Bạn có chắc là muốn xoá Album <" + album.AlbumTitle + "> không?", "Warning!", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (rs == DialogResult.Yes)
                {
                    //Goi ham xoa
                    entry.Delete();
                    //Thong bao
                    DialogResult rs1 = MessageBox.Show("Xoá Album thành công", "Warning!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    Response.Redirect("Album.aspx");

                }
                else
                {
                    Response.Redirect("Album.aspx");
                }
            }

            catch
            {
            }
        }
 public void DeletePhoto(PicasaEntry photo)
 {
     var service = GetPicasaService();
     try
     {
         photo.Delete();
     }
     catch
     {
         //If a first error. Try recreate service 
         service = GetPicasaService(true);
         photo.Delete();
     }
 }