public int GetMaxPageNumber() { if (MetricGroups == null || !MetricGroups.Any()) { return(0); } return(MetricGroups.Max(g => g.Page)); }
public int GetMaxGroupOrder() { if (MetricGroups == null || !MetricGroups.Any()) { return(0); } return(MetricGroups.Max(g => g.Order)); }