Exemplo n.º 1
0
        public IActionResult Auth([FromBody] User value)
        {
            var user = _profileService.Authorization(value);

            if (user == null)
            {
                return(BadRequest(new { message = "Username or password is incorrect" }));
            }

            return(Ok(user));
        }