protected void Page_Init(object sender, EventArgs e) { var items = new List <IMediaDetail>(); items.AddRange(MediaDetailsMapper.GetDataModel().MediaDetails.Where(i => i.HistoryVersionNumber == 0 && (i.PublishDate > DateTime.Now || i.ExpiryDate <= DateTime.Now))); //MediaDetailsMapper.FilterByIsHistoryStatus(MediaDetailsMapper.FilterByPublishedStatus(MediaDetailsMapper.GetAll(), false), false) MediaDetailsGrid.SetItems(items.Distinct()); }
protected void Page_Init(object sender, EventArgs e) { var items = MediaDetailsMapper.GetDataModel().MediaDetails.Where(i => !i.IsHistory && !i.ShowInMenu); //MediaDetailsMapper.FilterByIsHistoryStatus(MediaDetailsMapper.FilterByShowInMenuStatus(MediaDetailsMapper.GetAll(), false), false); MediaDetailsGrid.SetItems(items); }
protected void Page_Init(object sender, EventArgs e) { var items = MediaDetailsMapper.GetDataModel().MediaDetails.Where(i => i.HistoryVersionNumber == 0 && i.IsDeleted); //MediaDetailsMapper.FilterByIsHistoryStatus(MediaDetailsMapper.FilterByDeletedStatus(MediaDetailsMapper.GetAll(), true), false); MediaDetailsGrid.SetItems(items); }