public ActionResult Delete(int id) { ProductClient pc = new ProductClient(); pc.Delete(id); return(RedirectToAction("Index")); }
public ActionResult Delete(int id) { try { CC.Delete(id); return(RedirectToAction("Index", "Product")); } catch (Exception ex) { throw (ex); } }
public async Task <HttpStatusCode> Delete(int productId) { return(await _client.Delete(productId)); }