Ejemplo n.º 1
0
        public ChoresController(ChoreContext context)
        {
            _context = context;

            /*
             * _context.Add(new Chore
             * {
             *  Id = 234,
             *  Name = "Clean room"
             * });
             * _context.Add(new Chore
             * {
             *  Id = 2345,
             *  Name = "Wash car"
             * });
             * _context.Add(new Chore
             * {
             *  Id = 22456,
             *  Name = "Take out garbage"
             * });
             *
             * _context.SaveChanges();
             */
        }
Ejemplo n.º 2
0
 public ChoreRepository(ChoreContext context)
 {
     _dbContext = context;
 }