Ejemplo n.º 1
0
        public ActionResult Create()
        {
            if (this.Auth.GetAuthenticatedUser() == null)
            {
                return(this.RedirectLocal("/access/sign?signin=true"));
            }
            var model = new MerchantModel()
            {
                EnjoyUser = new EnjoyUserModel()
                {
                    Id = this.Auth.GetAuthenticatedUser().Id
                }
            };
            var viewModel = client.Convert(model, this.WeChat.GetApplyProtocol());

            return(View(viewModel));
        }