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