public RequestPasswordResetAsync ( String email ) : Task |
||
String | The email. | |
Результат | Task |
public async Task<Result> RequestPasswordResetAsync(String email)
{
if (String.IsNullOrWhiteSpace(email))
{
throw new ArgumentNullException(nameof(email));
}
try
{
var result = await MakePostRequestAsync("user/password-reset", new KeyValuePair<string, string>("username", email));
return result.AsResult();
}
catch (HttpRequestException re)
{
return new Result
{
Success = false,
Error = re.Message,
Exception = re
};
}
}