public IEnumerable <shAboutu> DanhSachAbout_ByParentId(string ParentId) { shAboutService _about = new shAboutService(); IEnumerable <shAboutu> dsAbout = _about.FindList().Where(x => x.ParentId == ParentId && x.Status == true); return(dsAbout); }
public IEnumerable <shAboutu> DanhSachAbout() { shAboutService _about = new shAboutService(); return(_about.FindList().OrderBy(x => x.AboutId) .Where(x => string.IsNullOrEmpty(x.ParentId) || string.IsNullOrWhiteSpace(x.ParentId) && x.Status == true)); }