Esempio n. 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));
        }
Esempio n. 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);
 }