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); } }
public List <About> ListAbout() { return(_aboutAdminRepository.GetListAbout()); }
public List <About> GetAboutsTestimonials() { return(_aboutAdminRepository.GetListAbout().Where(x => x.Category == (int)AboutType.Testimonial).ToList()); }
public List <About> GetAbouts() { return(_aboutAdminRepository.GetListAbout().Where(x => x.status == true).OrderBy(x => x.id).ToList()); }