Пример #1
0
        public async Task <IActionResult> Register([FromBody] UserLoginRequest request)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest("Invalid payload"));
            }

            await _authService.AddLogin(request.Username, request.Password);

            return(Ok());
        }