Esempio n. 1
0
        public ActionResult Delete(int id)
        {
            ProductClient pc = new ProductClient();

            pc.Delete(id);
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 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));
 }