public IActionResult ResendConfirmCode([FromBody] UserContactContract data) { try { var userId = m_authenticationManager.GetCurrentUserId(); m_userManager.ResendConfirmCode(userId, data); return(Ok()); } catch (HttpErrorCodeException exception) { return(StatusCode(exception.StatusCode, exception.Message)); } }
public void ResendConfirmCode(UserContactContract data) { try { m_client.Post <object>($"user/current/contact/confirmation/resend", data); } catch (HttpRequestException e) { if (m_logger.IsErrorEnabled()) { m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e); } throw; } }
public IActionResult ResendConfirmCode([FromBody] ResendConfirmCodeRequest resendConfirmCodeRequest) { try { var contract = new UserContactContract { ContactType = resendConfirmCodeRequest.ContactType }; var client = GetUserClient(); client.ResendConfirmCode(contract); return(AjaxOkResponse()); } catch (HttpErrorCodeException e) { return(AjaxErrorResponse(m_localizationService.Translate("ResendCodeError", "Account"), e.StatusCode)); } }