Exemple #1
0
 public IEnumerable <ProductBaseView> GetCatalog() => ProductSet.Where(x => x.State == ProductState.InCatalog).ToList();
Exemple #2
0
 public IEnumerable <ProductView> GetAllForOwner(int ownerId) => ProductSet.Where(x => x.CreatedBy.Id == ownerId).ToList();
Exemple #3
0
 public IEnumerable <ProductView> GetAllForAdmin() => ProductSet.Where(x => x.State == ProductState.UnProcessed).ToList();
Exemple #4
0
 public ProductView GetOne(int id) => ProductSet.Where(x => x.Id == id).FirstOrDefault();