Ejemplo n.º 1
0
        public Coach Execute()
        {
            //allow for mocking and passing in... otherwise new it up
            _context = _context ?? new BSGEliteEntities1();

            _context.SaveChanges();

            //return newOrder;
            return new Coach();
        }
Ejemplo n.º 2
0
 public CreateNewCoachCommand(BSGEliteEntities1 context)
 {
     //allow it to be injected - though that's only for testing
     _context = context;
 }