コード例 #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());
 }