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