public async Task <ActionResult> Edit(Product product) { if (ModelState.IsValid) { ProductsClient api = new ProductsClient(); await api.UpdateAsync(product); return(RedirectToAction("Index")); } return(View(product)); }