Beispiel #1
0
        /*
         * WARNING: This is the quick and easy way to make the controller
         *          use a different LibraryContext - good enough for our purposes.
         *          The "right" way is through Dependency Injection via the constructor
         *          (look this up if interested).
         */

        // TODO: Uncomment and change 'X' after you have scaffoled

        public void UseLMSContext(Team45LMSContext ctx)
        {
            db = ctx;
        }
Beispiel #2
0
 public CommonController()
 {
     db = new Team45LMSContext();
 }