コード例 #1
0
        public ContentResult Edit(BaseWxConfig config)
        {
            int rtn = 0;

            if (config.ID > 0)
            {
                rtn = config.EditByID();
            }
            else
            {
                config.IsActive = true;
                rtn             = config.InsertAndReturnIdentity();
            }


            if (rtn > 0)
            {
                return(Content("ok"));
            }
            return(Content("保存出错"));
        }
コード例 #2
0
        public ActionResult Index()
        {
            BaseWxConfig wxconfig = BaseWxConfig.GetWxConfig();

            return(View(wxconfig));
        }