public static bool Try() { try { using (var db = new TeacherHelperContext()) { return(db.Database.CanConnect()); } } catch (Exception) { return(false); } }
public UsersService() { this.dbContext = new TeacherHelperContext(); }
public SubjectsService() { this.dbContext = new TeacherHelperContext(); }
public AuthenticationService() { dbContext = new TeacherHelperContext(); }
public TestService() { db = new TeacherHelperContext(); }
public QuestionsService() { db = new TeacherHelperContext(); }
public TestGenerationService() { this.db = new TeacherHelperContext(); }