Exemplo n.º 1
0
 public IEnumerable <Footer> GetAll(string keyword)
 {
     if (!string.IsNullOrEmpty(keyword))
     {
         return(_footerRepository.GetMulti(x => x.Content.Contains(keyword)));
     }
     else
     {
         return(_footerRepository.GetAll());
     }
 }
Exemplo n.º 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());
     }
 }