public void SignupUser(Signup signup) { try { } catch (Exception ex) { throw ex; } }
public IActionResult Register([FromBody] Signup value) { try { _registrationService.SignupUser(value); return(Accepted()); } catch (Exception ex) { _logger.LogError(ex, "Registration failed"); return(BadRequest()); } }