Exemple #1
0
        public Package Delete(int id)
        {
            var packDelete = _ctx.Remove(new Package {
                Id = id
            }).Entity;

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

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

            _ctx.SaveChanges();
            return(manuRemoved);
        }
        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);
        }