public TestSearch(string s, bool d, bool t, bool r, StudentTestsContext context, Student student = null) { SearchQuery = s; DisciplinesOnly = d; TopicsOnly = t; HasResultOnly = r; results = context.Results.ToList(); this.student = student; }
public ResultSearch(string s, bool st, bool gr, int sf, int se, int mf, int me, StudentTestsContext context) { SearchQuery = s; StudentsOnly = st; GroupsOnly = gr; sFrom = sf; sTo = se; mFrom = mf; mTo = me; tests = context.Tests.ToList(); students = context.Students.ToList(); }
public TeacherSearch(string s, bool f, bool g, bool pos, bool test, bool mail, StudentTestsContext context) { SearchQuery = s; FullNameOnly = f; DepartmentsOnly = g; PosOnly = pos; MailOnly = mail; testOnly = test; _tests = context.Tests.ToList(); _disc = context.Disciplines.ToList(); if (f == false && g == false && PosOnly == false) { FullNameOnly = true; } }
public StudentSearch(string s, bool f, bool g, bool h, bool fv, bool tw, StudentTestsContext context) { SearchQuery = s; FullNameOnly = f; GroupsOnly = g; HasResultOnly = h; FiveOnly = fv; TwoOnly = tw; if (f == false && g == false) { FullNameOnly = true; } results = context.Results.ToList(); foreach (var r in results) { r.Test = context.Tests.First(t => t.TestId == r.TestId); } }
public TestController(UserContext usersContext, StudentTestsContext mainContext) { usersDb = usersContext; mainDb = mainContext; }
public ResultsController(StudentTestsContext context) { _context = context; }
public HomeController(StudentTestsContext context) { db = context; }
public TestsController(StudentTestsContext context, ITeacherSystemService teacherSystemService) { _context = context; _teacherSystemService = teacherSystemService; }