public static bool LoginAdmin(string userName, string password) { using (InternDbContext context = new InternDbContext()) { return(context.AdminUsers.Any(user => user.UserName.Equals(userName, StringComparison.OrdinalIgnoreCase) && user.Password == password)); } }
public QuestionModel() { context = new InternDbContext(); }
public AnswerDao() { context = new InternDbContext(); }
public EmployeeDbService(InternDbContext db, IConfiguration configuration) { this.db = db; this.configuration = configuration; }
public AdminDao() { context = new InternDbContext(); }
public LookupModel() { context = new InternDbContext(); }
public QuesScoreModel() { context = new InternDbContext(); }
public ResultTableDao() { context = new InternDbContext(); }
public InternshipDbService(InternDbContext db, IConfiguration configuration) { this.db = db; this.configuration = configuration; }
public UserDao() { context = new InternDbContext(); }
public TopicDao() { context = new InternDbContext(); }
public QuestionDao() { context = new InternDbContext(); }
public UserModel() { context = new InternDbContext(); }
public TopicModel() { context = new InternDbContext(); }