Beispiel #1
0
        public void AuthenticateUser(string email, string password)
        {
            context = new RushHourDbContext();

            List <User> users = context.Users.Where((u) => u.Email == email && u.Password == password).ToList();

            this.LoggedUser = users.Count > 0 ? users[0] : null;
        }
Beispiel #2
0
 public UnitOfWork()
 {
     this.context = new RushHourDbContext();
 }
Beispiel #3
0
 public Repository(RushHourDbContext context)
 {
     dbSet        = context.Set <TEntity>();
     this.context = context;
 }
Beispiel #4
0
 public AppointmentRepository(RushHourDbContext context) : base(context)
 {
 }
Beispiel #5
0
 public ActivityRepository(RushHourDbContext context) : base(context)
 {
     this.context = context;
 }
Beispiel #6
0
 public Repository(RushHourDbContext context)
 {
     db    = context;
     dbSet = db.Set <T>();
 }
Beispiel #7
0
 public UserRepository(RushHourDbContext context) : base(context)
 {
     this.context = context;
 }