protected async Task UpdatePersonalInfoAsync() { await ProfileAppService.UpdateAsync( ObjectMapper.Map <PersonalInfoModel, UpdateProfileDto>(PersonalInfoModel) ); await UiMessageService.SuccessAsync(L["PersonalSettingsSaved"]); }
protected async Task UpdatePersonalInfoAsync() { if (!await UiMessageService.ConfirmAsync(UiLocalizer["AreYouSure"])) { return; } await ProfileAppService.UpdateAsync( ObjectMapper.Map <PersonalInfoModel, UpdateProfileDto>(PersonalInfoModel) ); await UiMessageService.SuccessAsync(L["PersonalSettingsSaved"]); }