public async Task <List <Product> > GetProductOptions(QueryOptions options)
 {
     return(await QueryOptionsRepository <Product> .CreateAsync(_context.Products.Include(p => p.Catalog), options));
 }
Beispiel #2
0
 public async Task <List <Post> > GetPostOptions(QueryOptions options)
 {
     return(await QueryOptionsRepository <Post> .CreateAsync(_context.Posts.Include(p => p.Category), options));
 }
Beispiel #3
0
 public async Task <List <Category> > GetCategoryOptions(QueryOptions queryOptions)
 {
     return(await QueryOptionsRepository <Category> .CreateAsync(_context.Categories, queryOptions));
 }
 public async Task <List <Catalog> > GetCatalogOptions(QueryOptions options)
 {
     return(await QueryOptionsRepository <Catalog> .CreateAsync(_context.Catalogs, options));
 }
 public async Task <List <Order> > GetOrderOptions(QueryOptions options)
 {
     return(await QueryOptionsRepository <Order> .CreateAsync(_context.Orders.Include(o => o.Customer), options));
 }