You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
423 B
21 lines
423 B
using BowlingService.Interfaces;
|
|
using DTOs;
|
|
|
|
namespace GraphQL_Project;
|
|
|
|
public class Query
|
|
{
|
|
private readonly IJoueurService _joueurService;
|
|
|
|
public Query(IJoueurService joueurService)
|
|
{
|
|
_joueurService = joueurService;
|
|
}
|
|
|
|
public IQueryable<JoueurDTO> GetJoueurs()
|
|
{
|
|
var data = _joueurService.GetAll();
|
|
var result = data.Result;
|
|
return result.AsQueryable();
|
|
}
|
|
} |