// GET: product/edit/5 public async Task <ActionResult> Edit(int id) { ProductsClient api = new ProductsClient(); Product product = await api.GetAsync(id); if (product == null) { return(HttpNotFound()); } return(View(product)); }
public async Task <Product> GetProduct(Guid uid) { return(await _productsClient.GetAsync(uid)); }