public JsonResult GetUserGeneralDetail() { CommunityBL communityBL = new CommunityBL(); UserBM CurrentUser = (UserBM)Session["User"]; UserGeneralInformationBM UserGeneralInformationBM = new UserGeneralInformationBM(); if (CurrentUser != null) { UserGeneralInformationBM = UserGeneralInformationBL.GetGeneralInformationByUserId(CurrentUser.Id); UserGeneralInformationBM.SubCommunityName = communityBL.GetCommunityById(UserGeneralInformationBM.SubCommunityId).Name; } return(Json(UserGeneralInformationBM, JsonRequestBehavior.AllowGet)); }
public JsonResult GetSubCommunityByCommunity(int Id) { List<CommunityBM> communityList = new List<CommunityBM>(); CommunityBL communityBL = new CommunityBL(); communityList = communityBL.GetSubCommunityByCommunity(Id); return Json(communityList, JsonRequestBehavior.AllowGet); }