Пример #1
0
 public GetHomeworks(HomeworkDBContext homeworkDB, UserDBContext userDB, NoteCatDBContext noteCatDB,
                     SelectedCategoriesDBcontext userCatDB, NoteClassDBContext noteClassDB, string id)
 {
     this.homeworkDB  = homeworkDB;
     this.userDB      = userDB;
     this.userCatDB   = userCatDB;
     this.noteCatDB   = noteCatDB;
     this.noteClassDB = noteClassDB;
     user             = userDB.Users.First(e => e.UserId == id);
 }
Пример #2
0
 public HomeworkController(HomeworkDBContext context, UserDBContext userDB, NoteCatDBContext noteCatDB,
                           SelectedCategoriesDBcontext userCatDB, NoteClassDBContext noteClassDB, CommentDBContext commentDB)
 {
     _context         = context;
     this.userDB      = userDB;
     this.userCatDB   = userCatDB;
     this.noteCatDB   = noteCatDB;
     this.noteClassDB = noteClassDB;
     this.commentDB   = commentDB;
 }
 public SelectedCategoriesController(SelectedCategoriesDBcontext context, UserDBContext userDB)
 {
     _context    = context;
     this.userDB = userDB;
 }