Ejemplo n.º 1
0
        public Shoe DeleteShoe(int shoeId)
        {
            Shoe shoe = (from p in _context.Shoe
                         where p.ShoeId == shoeId
                         select p).FirstOrDefault();

            if (shoe != null)
            {
                _context.Remove(shoe);
                _context.SaveChanges();
            }
            return(shoe);
        }