Ejemplo n.º 1
0
 public Task <IEnumerable <Listing> > GetListingsByCategoryAsync(ListingCategory category, int page = 1, int perPage = 30)
 => GetAsync <IEnumerable <Listing> >($"/api/listings/category/{category}", new Dictionary <string, object>
 {
     { "page", page },
     { "per_page", perPage },
 });
Ejemplo n.º 2
0
 public IEnumerable <Category> GetByType(ListingCategory type)
 {
     return(this.Collection.AsQueryable().Where(c => c.Type == type));
 }