Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ProductService
- {
- private readonly SqlProductRepository _productRepository;
- public ProductService()
- {
- _productRepository = new SqlProductRepository();
- }
- public IList<string> GetAllProductsByStatus()
- {
- var criteria = "Status=1";
- return _productRepository.GetAllProducts(criteria);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement