public async Task <IActionResult> Index() { await _elasticsearch.ChekIndex("product"); // test insert //await _elasticsearch.InsertDocument("product", new Product { ImageUrl = "https://www.cihatayaz.com/wp-content/uploads/2016/06/hevesli-kitap-okumak.jpg", Name = "Kürk Mantolu Madonna", Price = 25.5 }); var model = await GetItems(); return(View(model)); }