예제 #1
0
    public string SavePhotos()
    {
        string albumId;

        if (Session["PhotoAlbumId"] == null)
        {
            MediaAlbumBO objAClass = new MediaAlbumBO();
            objAClass.UserId   = userid;
            objAClass.Name     = "My Pictures";
            objAClass.Type     = Global.PHOTO;
            objAClass.isFollow = true;
            albumId            = MediaAlbumBLL.insertDefaultAlbum(objAClass);
        }
        else
        {
            albumId = Session["PhotoAlbumId"].ToString();
        }
        MediaBO objClass = new MediaBO();

        objClass.UserId = userid;


        objClass.AlbumId     = albumId;
        objClass.Caption     = "";
        objClass.Name        = "";
        objClass.Description = "";
        objClass.AddedDate   = DateTime.Now;
        objClass.Location    = "";
        objClass.Type        = Global.PHOTO;
        objClass.isFollow    = true;
        return(MediaBLL.insertMedia(objClass));
    }
예제 #2
0
    public string SavePhotos()
    {
        string albumId;

        MediaAlbumBO objAClass = new MediaAlbumBO();

        objAClass.UserId   = Userid;
        objAClass.Name     = "Profile Pictures";
        objAClass.Type     = Global.PHOTO;
        objAClass.isFollow = true;
        albumId            = MediaAlbumBLL.insertDefaultAlbum(objAClass);



        MediaBO objClass = new MediaBO();

        objClass.UserId = Userid;


        objClass.AlbumId     = albumId;
        objClass.Caption     = "";
        objClass.Name        = "";
        objClass.Description = "";
        objClass.AddedDate   = DateTime.Now;
        objClass.Location    = "";
        objClass.Type        = Global.PHOTO;
        objClass.isFollow    = true;
        return(MediaBLL.insertMedia(objClass));
    }