Beispiel #1
0
        public Customer Delete(int id)
        {
            var Customer = ReadByID(id);

            context.Remove(Customer);
            return(Customer);
        }
        public Umbrella Delete(int id)
        {
            var Umbrella = ReadByID(id);

            context.Remove(Umbrella);
            return(Umbrella);
        }
        public Order Delete(int id)
        {
            Order o = _context.Remove(new Order()
            {
                id = id
            }).Entity;

            _context.SaveChanges();
            return(o);
        }