Пример #1
0
 public IActionResult ResendUserInvite([FromRoute] int userId)
 {
     try
     {
         _confirmUserUseCase.Resend(userId);
         return(Ok());
     }
     catch (UseCaseException e)
     {
         return(BadRequest(e));
     }
 }
 public IActionResult ResendConfirmationCode([FromBody] ConfirmationResendRequest confirmationResendRequest)
 {
     if (!confirmationResendRequest.IsValid())
     {
         return(BadRequest("Invalid details provided"));
     }
     try
     {
         _confirmUserUseCase.Resend(confirmationResendRequest);
         return(Ok());
     }
     catch (Exception e)
     {
         throw;
     }
 }