コード例 #1
0
        public ActionResult SaveCustomFormContent()
        {
            SaveCustomFormContentArgs args = RequestArgs <SaveCustomFormContentArgs>();

            if (args == null)
            {
                return(RespondResult(false, "参数无效。"));
            }

            args.MemberId = MemberContext.Member.Id;

            CustomFormContentEntity contentArgs = new CustomFormContentEntity();

            if (args.ContentId.HasValue)
            {
                contentArgs.Id = args.ContentId.Value;
            }
            contentArgs.Domain       = DomainContext.Domain.Id;
            contentArgs.AppId        = DomainContext.AppId;
            contentArgs.Form         = args.FormId;
            contentArgs.MemberOpenId = this.OpenId;
            contentArgs.FillinTime   = DateTime.Now;
            contentArgs.Status       = EnumCustomFormContentStatus.Unprocessed;

            _customFormManager.SaveCustomFormContent(contentArgs, args);
            SessionContainer.ClearMemberContext(this.HttpContext);

            return(RespondResult());
        }
コード例 #2
0
        public ActionResult UpdatePersonalInfo()
        {
            UpdatePersonalInfoArgs args = RequestArgs <UpdatePersonalInfoArgs>();

            if (args == null)
            {
                return(RespondResult(false, "参数无效。"));
            }

            args.MemberId = MemberContext.Member.Id;

            _memberManager.UpdatePersonalInfo(args);
            SessionContainer.ClearMemberContext(this.HttpContext);

            return(RespondResult());
        }