public IActionResult Get(string id) { var client = new ElasticSearchClient <IIndexedEntities>(_settings, new BackgroundBaseContext(id, "get:product")); var product = client.GetProduct(id); return(new JsonResult(product)); }