public async Task <IActionResult> Register([FromBody] LoginDto loginDto)
        {
            try {
                await _authApplication.Register(loginDto);

                return(Ok());
            } catch (Exception ex) {
                return(BadRequest(new { message = ex.Message }));
            }
        }
示例#2
0
        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 }));
            }
        }