Beispiel #1
0
        public bool AddShirt(Shirt shirt)
        {
            _context.Add(shirt);
            int entries = _context.SaveChanges();

            return(entries > 0);
        }
        public bool AddShirt(Shirt shirt)
        {
            _context.Add(shirt);
            int entries = _context.SaveChanges();

            if (entries > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }