public async Task <ActionResult> Index() { var svcProfileDetailData = await UserMicroService.GetUserAsync(GetUserId()); var model = ModelFactory.CreateProfileDetailModel(svcProfileDetailData); return(View(model)); }
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)); }
public async Task <ActionResult> EditEmail() { var svcProfileDetailData = await UserMicroService.GetUserAsync(GetUserId()); var model = new ProfileEditEmailModel() { Email = svcProfileDetailData.Email }; return(View(model)); }
public async Task <ActionResult> EditNickname() { var svcProfileDetailData = await UserMicroService.GetUserAsync(GetUserId()); var model = new ProfileEditNicknameModel() { Nickname = svcProfileDetailData.NickName }; return(View(model)); }
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)); }