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