Пример #1
0
        //public ActionResult Delete(int id)
        //{
        //    InventoryClient client = new InventoryClient();
        //    client.DbRemoveItem(id);
        //    return null;
        //}

        public ActionResult DeleteItems()
        {
            //return RedirectToAction("Delete");
            InventoryClient db = new InventoryClient();
            db.DbClearItems();
            return RedirectToAction("Index");
        }