예제 #1
0
        public Player Add(Player obj)
        {
            _context.Set <Player>().Add(obj);
            _context.SaveChanges();

            return(obj);
        }
예제 #2
0
        public Event Add(Event obj)
        {
            _context.Set <Event>().Add(obj);
            _context.SaveChanges();

            return(obj);
        }