public IActionResult DeveloperLogin([FromQuery] string username, [FromQuery] string password) { try { if (string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password)) { return(BadRequest("Username or password can not be empty")); } var result = MongoConnector.DeveloperLogin(username, password); if (result != null) { return(Ok(result)); } else { return(BadRequest("Invalid credentials")); } } catch (Exception ex) { return(BadRequest(ex)); } }