예제 #1
0
        public IActionResult GetClientById([FromRoute(Name = "clientId")][Required] string clientId)
        {
            Client client = _clientProcessor.GetClientById(clientId);

            if (client == null)
            {
                return(BadRequest("Could not find client"));
            }
            return(Json(client));
        }