示例#1
0
        public ActionResult Subscribe(ControllerSubscribeModel input)
        {
            CCSubmitDirect db = CCSubmitDirect.Instance;

            (new LegacySubscribe(db, this.Request, input)).Run();

            if (input.LeadActionID == -1)
            {
                return(this.Error("aid error"));
            }

            ActionManager.ExecuteAction(new ActionModel()
            {
                Database = db,
                Service  = ActionModel.Convert(input.pp),
                Event    = ActionModelEvent.InputContact,
                ActionID = input.LeadActionID,

                FirstName = input.firstname,
                LastName  = input.lastname,
                Msisdn    = input.msisdn,
                Country   = input.country,
                Zip       = input.zip
            });

            db.Transactional.Run();
            return(this.Success("success", input.LeadActionID));
        }