public IActionResult Create(string username, string password) { _logger.LogInformation("Creating Token", username, password); if (ApiSecurity.AuthenticationIsValid(username, password)) { return(new ObjectResult(ApiSecurity.GenerateToken())); } return(BadRequest()); }