public EntitiesChangesModel( Entity entity, PagedRecords pagedRecords, TableInfo tableInfo) : base(entity, pagedRecords, tableInfo) { }
public EntitiesIndexModel( Entity entity, PagedRecords pagedRecords, TableInfo tableInfo) { Records = pagedRecords.Records; Columns = entity.DisplayProperties .Select(x => new Column(x, tableInfo.Order, tableInfo.OrderDirection)).ToList(); Entity = entity; Pager = new PagerInfo(tableInfo.PerPage, tableInfo.Page, pagedRecords.TotalItems); Filters = pagedRecords.Filters.Where(x => x.IsVisible).ToList(); TableInfo = tableInfo; }