예제 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            try
            {
                productData.Delete(id);
            }
            catch (Exception ex)
            {
                log.Error("Could't delete a product from the Database", ex);
                return(View("ErrorRetriveData"));
            }

            return(RedirectToAction("Index"));
        }
예제 #2
0
 // DELETE: api/Tables/5
 public void Delete(int id)
 {
     tableData.Delete(id);
 }
예제 #3
0
 // DELETE: api/Products/5
 public void Delete(int id)
 {
     productData.Delete(id);
 }