Exemplo n.º 1
0
        public async Task <ActionResult <User> > Get(string username, string password)
        {
            User user = await _authorize.ValidateUser(username, password);

            if (user != null)
            {
                return(user);
            }

            return(BadRequest());
        }