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")); }
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")); } }