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