public ContactCoreEntity GetByProfileID(string strProfileID, string strLoggedInUserID) { Profile.ProfileSecurity objProfileSecurity = new Profile.ProfileSecurity(ref _objLoggedInUser); using (objProfileSecurity as IDisposable) { if (!string.IsNullOrEmpty(strLoggedInUserID)) { //MugurthamUserToken - If null - hacker is trying to hack the system so redirect to unauthorized page if (!objProfileSecurity.validateProfileViewAccess(strProfileID, strLoggedInUserID)) { strProfileID = strLoggedInUserID; } } } objProfileSecurity = null; return(GetByProfileID(strProfileID)); }
public ContactCoreEntity GetByProfileID(string strProfileID, string strLoggedInUserID) { Profile.ProfileSecurity objProfileSecurity = new Profile.ProfileSecurity(); using (objProfileSecurity as IDisposable) { if (!string.IsNullOrEmpty(strLoggedInUserID)) { //MugurthamUserToken - If null - hacker is trying to hack the system so redirect to unauthorized page if (!objProfileSecurity.validateProfileViewAccess(strProfileID, strLoggedInUserID)) { strProfileID = strLoggedInUserID; } } } objProfileSecurity = null; return GetByProfileID(strProfileID); }
public int Edit(ref Mugurtham.Core.BasicInfo.BasicInfoCoreEntity objBasicInfoCoreEntity, string LoggedInUserID) { Profile.ProfileSecurity objProfileSecurity = new Profile.ProfileSecurity(ref _objLoggedInUser); using (objProfileSecurity as IDisposable) { if (!string.IsNullOrEmpty(LoggedInUserID)) { //MugurthamUserToken - If null - hacker is trying to hack the system so redirect to unauthorized page if (!objProfileSecurity.validateProfileViewAccess(objBasicInfoCoreEntity.ProfileID, LoggedInUserID)) { objBasicInfoCoreEntity.ProfileID = LoggedInUserID; } } } objProfileSecurity = null; Edit(ref objBasicInfoCoreEntity); return(0); }
public int Edit(ref Mugurtham.Core.BasicInfo.BasicInfoCoreEntity objBasicInfoCoreEntity, string LoggedInUserID) { Profile.ProfileSecurity objProfileSecurity = new Profile.ProfileSecurity(); using (objProfileSecurity as IDisposable) { if (!string.IsNullOrEmpty(LoggedInUserID)) { //MugurthamUserToken - If null - hacker is trying to hack the system so redirect to unauthorized page if (!objProfileSecurity.validateProfileViewAccess(objBasicInfoCoreEntity.ProfileID, LoggedInUserID)) { objBasicInfoCoreEntity.ProfileID = LoggedInUserID; } } } objProfileSecurity = null; Edit(ref objBasicInfoCoreEntity); return 0; }