Ejemplo n.º 1
0
        public User GetByUsernameAndPassword(string username, string password)
        {
            VinylStoreDbContext context = new VinylStoreDbContext();

            return(context.Users.Where(i => i.Username == username &&
                                       i.Password == password).FirstOrDefault());
        }
Ejemplo n.º 2
0
 public BaseRepository()
 {
     context = new VinylStoreDbContext();
     items   = context.Set <T>();
 }