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());
            }
        }
예제 #2
0
        public async Task <IActionResult> GetClients([FromQuery] string name, [FromQuery] bool?enabled)
        {
            var clients = await _clientQueries.GetClientsAsync(name, enabled);

            return(Ok(clients));
        }