public async Task <IActionResult> Register([FromBody] RegisterDTO registerModel) { try { await _userAuthService.Create(registerModel, registerModel.Password); return(Ok()); } catch (Exception ex) { return(BadRequest(new { message = ex.Message })); } }