Beispiel #1
0
        public ActionResult DeleteConfirmed(int deleteID)
        {
            Vendor foundVendor = _dataBase.Vendors.FirstOrDefault(vendors => vendors.VendorId == deleteID);

            _dataBase.Remove(foundVendor);
            _dataBase.SaveChanges();
            return(View("ConfirmedPage"));
        }
        public ActionResult DeleteConfirmed(int deleteID)
        {
            Order foundOrder = _dataBase.Orders.FirstOrDefault(rows => rows.OrderId == deleteID);

            _dataBase.Remove(foundOrder);
            _dataBase.SaveChanges();
            return(View("ConfirmedPage"));
        }