예제 #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));
        }