Example #1
0
        public void Delete(int employeeId)
        {
            var item = _db.Employee.Find(employeeId);

            if (item == null)
            {
                return;
            }

            _db.Remove(item);
            _db.SaveChanges();
        }
Example #2
0
        public void Delete(int customerId)
        {
            var item = _db.Customer.Find(customerId);

            if (item == null)
            {
                return;
            }

            _db.Remove(item);
            _db.SaveChanges();
        }
Example #3
0
        public void Delete(int eventItemId)
        {
            var item = _db.Event.Find(eventItemId);

            if (item == null)
            {
                return;
            }

            _db.Remove(item);
            _db.SaveChanges();
        }
Example #4
0
        public void Delete(int priceListId)
        {
            var item = _db.PriceList.Find(priceListId);

            if (item == null)
            {
                return;
            }

            _db.Remove(item);
            _db.SaveChanges();
        }
Example #5
0
        public void Delete(int itemId)
        {
            var log = _db.Log.Find(itemId);

            if (log == null)
            {
                return;
            }

            _db.Remove(log);
            _db.SaveChanges();
        }