Exemplo n.º 1
0
        protected async Task UpdatePersonalInfoAsync()
        {
            await ProfileAppService.UpdateAsync(
                ObjectMapper.Map <PersonalInfoModel, UpdateProfileDto>(PersonalInfoModel)
                );

            await UiMessageService.SuccessAsync(L["PersonalSettingsSaved"]);
        }
Exemplo n.º 2
0
        protected async Task UpdatePersonalInfoAsync()
        {
            if (!await UiMessageService.ConfirmAsync(UiLocalizer["AreYouSure"]))
            {
                return;
            }

            await ProfileAppService.UpdateAsync(
                ObjectMapper.Map <PersonalInfoModel, UpdateProfileDto>(PersonalInfoModel)
                );

            await UiMessageService.SuccessAsync(L["PersonalSettingsSaved"]);
        }