コード例 #1
0
        public async Task <IActionResult> GetClient([FromRoute] string id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var client = await repositoryClient.GetClientById(id);

            if (client == null)
            {
                return(NotFound());
            }
            return(Ok(client));
        }