Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public class ProductService
  2. {
  3. private readonly SqlProductRepository _productRepository;
  4.  
  5. public ProductService()
  6. {
  7. _productRepository = new SqlProductRepository();
  8. }
  9.  
  10. public IList<string> GetAllProductsByStatus()
  11. {
  12. var criteria = "Status=1";
  13.  
  14. return _productRepository.GetAllProducts(criteria);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement