Exemple #1
0
 private int savePhotoToFolder(string strPhotoPath, string strProfileID)
 {
     Mugurtham.Core.Login.LoggedInUser      objLoggedIn  = (Mugurtham.Core.Login.LoggedInUser)Session["LoggedInUser"];
     Mugurtham.Core.Profile.Photo.PhotoCore objPhotoCore = new Core.Profile.Photo.PhotoCore(ref objLoggedIn);
     using (objPhotoCore as IDisposable)
     {
         Mugurtham.Core.Profile.Photo.PhotoCoreEntity objPhotoCoreEntity = new Core.Profile.Photo.PhotoCoreEntity();
         using (objPhotoCoreEntity as IDisposable)
         {
             objPhotoCoreEntity.IsProfilePic = 0;
             objPhotoCoreEntity.PhotoPath    = strPhotoPath;
             objPhotoCoreEntity.ProfileID    = strProfileID;
             objPhotoCore.Add(ref objPhotoCoreEntity);
         }
         objPhotoCoreEntity = null;
     }
     objPhotoCore = null;
     return(0);
 }
 private int savePhotoToFolder(string strPhotoPath, string strProfileID)
 {
     Mugurtham.Core.Profile.Photo.PhotoCore objPhotoCore = new Core.Profile.Photo.PhotoCore();
     using (objPhotoCore as IDisposable)
     {
         Mugurtham.Core.Profile.Photo.PhotoCoreEntity objPhotoCoreEntity = new Core.Profile.Photo.PhotoCoreEntity();
         using (objPhotoCoreEntity as IDisposable)
         {
             objPhotoCoreEntity.IsProfilePic = 0;
             objPhotoCoreEntity.PhotoPath = strPhotoPath;
             objPhotoCoreEntity.ProfileID = strProfileID;
             objPhotoCore.Add(ref objPhotoCoreEntity);
         }
         objPhotoCoreEntity = null;
     }
     objPhotoCore = null;
     return 0;
 }