/// <summary> /// Submits the form to the account forgotten service. /// </summary> /// <returns>Awaitable task is returned.</returns> private async Task SubmitAsync() { try { this.IsSubmitEnabled = false; this.ShowBusyStatus(Account.TextValidatingUsername, true); using (var api = new ClientApi()) { var response = await api.ForgotPasswordAsync(this, CancellationToken.None); this.ClearStatus(); await this.ShowMessageBoxAsync(CancellationToken.None, response.Message, this.Title); if (response?.IsValid == true) { this.Platform.Navigation.GoBack(); } } } catch (Exception ex) { await this.HandleExceptionAsync(ex, "Error during account forgot password."); } finally { this.CheckIfValid(); } }