예제 #1
0
 public IEnumerable <Footer> GetAll(string keyword)
 {
     if (!string.IsNullOrEmpty(keyword))
     {
         return(_footerRepository.GetMulti(x => x.Content.Contains(keyword)));
     }
     else
     {
         return(_footerRepository.GetAll());
     }
 }
예제 #2
0
 public IEnumerable <Footer> GetAll(string keyword)
 {
     if (!string.IsNullOrEmpty(keyword))//so sánh khác rỗng (nên dùng cái này thay cho [keyword !=null]
     {
         return(_footerRepository.GetMulti(x => x.ID.Contains(keyword)));
     }
     else
     {
         return(_footerRepository.GetAll());
     }
 }