Files
familytree/API/FamilyTreeAPI/GraphQL/Query/QueryFamilyTree.cs
T
2025-08-10 22:01:36 +10:00

20 lines
510 B
C#

using FamilyTreeAPI.Models;
namespace FamilyTreeAPI.GraphQL.Query
{
public class QueryFamilyTree
{
[UsePaging]
[UseProjection]
[UseFiltering]
[UseSorting]
public IQueryable<Person> GetPersons([Service] FamilyTreeDBContext dBContext) => dBContext.Persons;
[UsePaging]
[UseProjection]
[UseFiltering]
[UseSorting]
public IQueryable<staff> GetStaffs([Service] FamilyTreeDBContext dBContext) => dBContext.staff;
}
}