예제 #1
0
        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));
        }
예제 #2
0
 public JsonResult GetSubCommunityByCommunity(int Id)
 {
     List<CommunityBM> communityList = new List<CommunityBM>();
     CommunityBL communityBL = new CommunityBL();
     communityList = communityBL.GetSubCommunityByCommunity(Id);
     return Json(communityList, JsonRequestBehavior.AllowGet);
 }