コード例 #1
0
        public ActionResult CompleteProfile()
        {
            LayoutViewModel.ActiveLink = Links.SupplierUpdateProfile;

            LayoutViewModel.HideTopWrapperMenu = true;

            var userModel = new UserService().GetUserById(new Guid(LayoutViewModel.ProviderUserKey));

            CompleteSupplierProfileViewModel viewModel = new CompleteSupplierProfileViewModel
            {
                BusinessNumberABN = userModel.BusinessNumberABN,
                BusinessType = userModel.BusinessType,
                BussinesWebSite = userModel.BussinesWebSite
            };

            return View(viewModel);
        }
コード例 #2
0
        public ActionResult CompleteProfile(CompleteSupplierProfileViewModel viewModel)
        {
            LayoutViewModel.ActiveLink = Links.SupplierUpdateProfile;

            LayoutViewModel.HideTopWrapperMenu = true;

            var userModel = new UserModel
            {
                Id = LayoutViewModel.CurrentAccountId,
                BusinessNumberABN = viewModel.BusinessNumberABN,
                BusinessType = viewModel.BusinessType,
                BussinesWebSite = viewModel.BussinesWebSite
            };

            var updated = new UserService().UpdateToCompleteSupplierUser(userModel);

            return RedirectToAction("CreateReward");
        }