public async Task <IActionResult> GetClients(string name, bool?enabled) { try { var clients = await _clientQueries.GetClientsAsync(name, enabled); return(Ok(clients)); } catch (KeyNotFoundException ex) { return(NotFound()); } }
public async Task <IActionResult> GetClients([FromQuery] string name, [FromQuery] bool?enabled) { var clients = await _clientQueries.GetClientsAsync(name, enabled); return(Ok(clients)); }