public async Task <bool> VerifyEmailAsync(string accessToken, VerifiedEmailData verifiedEmailData) { httpClient.SetBearerToken(accessToken); var response = await httpClient.PostAsJsonAsync(Controller + "VerifyEmail", verifiedEmailData); return(await response.CreateResponseAsync <bool>()); }
public async Task<bool> VerifyEmailAsync(VerifiedEmailData verifiedEmailData) { var response = await httpClient.PostAsJsonAsync(Controller + "VerifyEmail", verifiedEmailData); return await response.CreateResponseAsync<bool>(); }
public async Task<IHttpActionResult> VerifyEmail(VerifiedEmailData model) { var result = await userManager.ConfirmEmailAsync(model.Id.ToString(), model.Code); return Ok(result.Succeeded); }
public async Task <IHttpActionResult> VerifyEmail(VerifiedEmailData model) { var result = await userManager.ConfirmEmailAsync(model.Id.ToString(), model.Code); return(Ok(result.Succeeded)); }