Пример #1
0
        public async Task <ActionResult> Index()
        {
            var svcProfileDetailData = await UserMicroService.GetUserAsync(GetUserId());

            var model = ModelFactory.CreateProfileDetailModel(svcProfileDetailData);

            return(View(model));
        }
Пример #2
0
        public async Task <ActionResult> EditShippingAddress()
        {
            var svcProfileDetailData = await UserMicroService.GetUserAsync(GetUserId());

            var model = ModelFactory.CreateProfileEditShippingAddressModel(svcProfileDetailData);

            model.StateCodes = GetStateCodes(string.IsNullOrEmpty(model.StateCode));

            return(View(model));
        }
Пример #3
0
        public async Task <ActionResult> EditEmail()
        {
            var svcProfileDetailData = await UserMicroService.GetUserAsync(GetUserId());

            var model = new ProfileEditEmailModel()
            {
                Email = svcProfileDetailData.Email
            };

            return(View(model));
        }
Пример #4
0
        public async Task <ActionResult> EditNickname()
        {
            var svcProfileDetailData = await UserMicroService.GetUserAsync(GetUserId());

            var model = new ProfileEditNicknameModel()
            {
                Nickname = svcProfileDetailData.NickName
            };

            return(View(model));
        }
Пример #5
0
        public async Task <ActionResult> EditTimeZone()
        {
            var svcProfileDetailData = await UserMicroService.GetUserAsync(GetUserId());

            var model = new ProfileEditTimeZoneModel()
            {
                TimeZoneId = svcProfileDetailData.TimeZoneId
            };

            model.TimeZones = GetTimeZones(string.IsNullOrEmpty(model.TimeZoneId));

            return(View(model));
        }