public User GetByUsernameAndPassword(string username, string password) { VinylStoreDbContext context = new VinylStoreDbContext(); return(context.Users.Where(i => i.Username == username && i.Password == password).FirstOrDefault()); }
public BaseRepository() { context = new VinylStoreDbContext(); items = context.Set <T>(); }