public async Task <IActionResult> Get(int id) { if (id == 0) { return(BadRequest()); } var client = await _clientDataAccess.GetClientById(id); if (client != null) { var output = new { Client = client }; return(Ok(output)); } else { return(NotFound()); } }