Ejemplo n.º 1
0
 public IEnumerable <Entities.Player> GetAllGoals(int goals)
 {
     return(_context.Players.AsNoTracking().Where(PlayerQueries.GetAllAssists(goals)).OrderBy(x => x.Name));
 }
Ejemplo n.º 2
0
 public IEnumerable <Entities.Player> GetAllAssists(int assist) // asnotracking é utilizado para só por na tela algo
 {
     return(_context.Players.AsNoTracking().Where(PlayerQueries.GetAllAssists(assist)).OrderBy(x => x.Name));
 }