Exemplo n.º 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).
  */
 public void UseLMSContext(Team1LMSContext ctx)
 {
     db = ctx;
 }
Exemplo n.º 2
0
 public CommonController()
 {
     db = new Team1LMSContext();
 }