- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuery.cs
More file actions
Latest commit
17 lines (13 loc) · 438 Bytes
/
Copy pathQuery.cs
File metadata and controls
17 lines (13 loc) · 438 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
usingSystem;
usingSystem.Collections.Generic;
usingGraphQLApi.Domain.Products;
publicclassQuery
{
privatereadonlyProductsRepository_productsRepository;
publicQuery(ProductsRepositoryproductsRepository)
{
_productsRepository=productsRepository;
}
publicIEnumerable<Product>GetProducts()=>_productsRepository.Get();
publicProductGetProduct(Guidid)=>_productsRepository.GetById(id);
}