public int GetProfilePhotos(ref List<Mugurtham.Core.Profile.Photo.PhotoCoreEntity> objPhotoCoreEntityList, string strProfileID) { try { IQueryable<DTO.Profile.Photo> objIQPhoto; Profile.Photo.PhotoCore objPhotoCore = new Photo.PhotoCore(); using (objPhotoCore as IDisposable) objPhotoCore.getProfilePhotos(strProfileID, out objIQPhoto); objPhotoCore = null; if (objIQPhoto != null) { foreach (DTO.Profile.Photo objPhoto in objIQPhoto) { Mugurtham.Core.Profile.Photo.PhotoCoreEntity objPhotoCoreEntity = new Photo.PhotoCoreEntity(); using (objPhotoCoreEntity as IDisposable) { objPhotoCoreEntity.ID = objPhoto.ID; objPhotoCoreEntity.IsProfilePic = objPhoto.IsProfilePic; objPhotoCoreEntity.PhotoPath = objPhoto.PhotoPath; objPhotoCoreEntity.ProfileID = objPhoto.ProfileID; objPhotoCoreEntityList.Add(objPhotoCoreEntity); } objPhotoCoreEntity = null; } } } catch (Exception objEx) { Helpers.LogExceptionInFlatFile(objEx); } return 0; }