Пример #1
0
 public List <Product> ListAllByName(string searchString)
 {
     if (searchString == null || searchString == "")
     {
         return(_productAdminRepository.GetListProduct());
     }
     else
     {
         searchString = Helper.RemoveSign4VietnameseString(searchString);
         var ListProduct = _productAdminRepository.ListSearchProduct(searchString);
         return(ListProduct);
     }
 }
Пример #2
0
 public List <Product> GetFeaturedProducts()
 {
     return(_productAdminRepository.GetListProduct().Where(x => x.isDisplayHomePage).ToList());
 }
Пример #3
0
 public List <Product> ListAll()
 {
     return(_productAdminRepository.GetListProduct().Where(x => x.status == true).OrderBy(x => x.createdDate).ToList());
 }