Пример #1
0
        public Package Delete(int id)
        {
            var packDelete = _ctx.Remove(new Package {
                Id = id
            }).Entity;

            _ctx.SaveChanges();
            return(packDelete);
        }
Пример #2
0
        public Order DeleteOrder(int id)
        {
            var removedOrder = _ctx.Remove(new Order {
                Id = id
            }).Entity;

            _ctx.SaveChanges();
            return(removedOrder);
        }
Пример #3
0
        public Manufacturer Delete(int id)
        {
            var manuRemoved = _ctx.Remove(new Manufacturer {
                Id = id
            }).Entity;

            _ctx.SaveChanges();
            return(manuRemoved);
        }
Пример #4
0
        public Drone Delete(int id)
        {
            var droneDelete = _ctx.Remove(new Drone {
                Id = id
            }).Entity;

            _ctx.SaveChanges();
            return(droneDelete);
        }
        public Customer DeleteCustomer(int id)
        {
            var custRemoved = _ctx.Remove(new Customer()
            {
                Id = id
            }).Entity;

            _ctx.SaveChanges();
            return(custRemoved);
        }