public async Task <IActionResult> Register([FromBody] LoginDto loginDto) { try { await _authApplication.Register(loginDto); return(Ok()); } catch (Exception ex) { return(BadRequest(new { message = ex.Message })); } }
public async Task <IActionResult> Register([FromBody] RegisterDto registerDto) { try { await _authApplication.Register(registerDto); return(Ok("User Successfully Registered")); } catch (Exception ex) { return(BadRequest(new { ex.Message })); } }