Esempio n. 1
0
        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 }));
            }
        }