public ActionResult getInterestedInMeProfiles() { string strGender = "admin"; // Mugurtham admin, Sangam admin, public user Mugurtham.Core.Login.LoggedInUser objLoggedIn = (Mugurtham.Core.Login.LoggedInUser)Session["LoggedInUser"]; if (objLoggedIn.roleID == Mugurtham.Core.Constants.RoleIDForUserProfile) // User Profiles { if (!string.IsNullOrWhiteSpace(objLoggedIn.BasicInfoCoreEntity.Gender)) { if (objLoggedIn.BasicInfoCoreEntity.Gender.ToLower().Trim() == "male".ToLower().Trim()) { strGender = "female"; } else { strGender = "male"; } } } ProfileBasicViewEntity objProfileBasicViewEntity = new ProfileBasicViewEntity(); ProfileInterestedCore objProfileInterestedCore = new ProfileInterestedCore(ref objLoggedIn); using (objProfileInterestedCore as IDisposable) { objProfileInterestedCore.GetInterestedInMeProfiles(Utility.connectionString(), strGender, objLoggedIn.LoginID, objLoggedIn.sangamID, ref objProfileBasicViewEntity, ref objLoggedIn ); } objProfileInterestedCore = null; return(this.Json(objProfileBasicViewEntity, JsonRequestBehavior.AllowGet)); }
public ActionResult RemoveInterest(string ID) { Mugurtham.Core.Login.LoggedInUser objLoggedIn = (Mugurtham.Core.Login.LoggedInUser)Session["LoggedInUser"]; string strUserID = string.Empty; ProfileInterestedCore objProfileInterestedCore = new ProfileInterestedCore(ref objLoggedIn); using (objProfileInterestedCore as IDisposable) { ProfileInterestedCoreEntity objProfileInterestedCoreEntity = new ProfileInterestedCoreEntity(); using (objProfileInterestedCoreEntity as IDisposable) objProfileInterestedCore.Delete(objLoggedIn.LoginID, ID); objProfileInterestedCoreEntity = null; } objProfileInterestedCore = null; return(this.Json("Success", JsonRequestBehavior.AllowGet)); }