コード例 #1
0
        public ActionResult SetAgreeStatement(AgreeStatementSetModels model)
        {
            model.ModuleName       = "Member";
            model.StatementContent = HttpUtility.UrlDecode(model.StatementContent);
            bool Result       = MemberShipSettingDAO.SetStatementItems(model);
            bool colSetResult = MemberShipRegSetDAO.UpdateItemSet(PageCache.SiteID, "IsNeedAgreeMemberDesc", model.IsNeedAgree.ToString().ToLower());

            if (!colSetResult)
            {
                return(Json("fail"));
            }
            return(Json(Result ? "success" : "fail"));
        }
コード例 #2
0
        public ActionResult UpdateMemberShipSet(long SiteID, string columnName, string columnValue)
        {
            MemberShipRegSetModels model = MemberShipRegSetDAO.GetItem(SiteID);
            bool Result = MemberShipRegSetDAO.UpdateItemSet(SiteID, columnName, columnValue);

            if (Result)
            {
                return(Json("success"));
            }
            else
            {
                return(Json("fail"));
            }
        }