Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
 public QuestionModel()
 {
     context = new InternDbContext();
 }
 public AnswerDao()
 {
     context = new InternDbContext();
 }
Esempio n. 4
0
 public EmployeeDbService(InternDbContext db, IConfiguration configuration)
 {
     this.db            = db;
     this.configuration = configuration;
 }
Esempio n. 5
0
 public AdminDao()
 {
     context = new InternDbContext();
 }
 public LookupModel()
 {
     context = new InternDbContext();
 }
 public QuesScoreModel()
 {
     context = new InternDbContext();
 }
Esempio n. 8
0
 public ResultTableDao()
 {
     context = new InternDbContext();
 }
Esempio n. 9
0
 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();
 }
Esempio n. 14
0
 public TopicModel()
 {
     context = new InternDbContext();
 }