Пример #1
0
 public List <About> ListAllByName(string searchString)
 {
     if (searchString == null || searchString == "")
     {
         return(_aboutAdminRepository.GetListAbout());
     }
     else
     {
         searchString = Helper.RemoveSign4VietnameseString(searchString);
         var ListAbout = _aboutAdminRepository.ListSearchAbout(searchString);
         return(ListAbout);
     }
 }
Пример #2
0
 public List <About> ListAbout()
 {
     return(_aboutAdminRepository.GetListAbout());
 }
Пример #3
0
 public List <About> GetAboutsTestimonials()
 {
     return(_aboutAdminRepository.GetListAbout().Where(x => x.Category == (int)AboutType.Testimonial).ToList());
 }
Пример #4
0
 public List <About> GetAbouts()
 {
     return(_aboutAdminRepository.GetListAbout().Where(x => x.status == true).OrderBy(x => x.id).ToList());
 }