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