public override int GetErrors(int pageIndex, int pageSize, IList errorEntryList) { repo.Page(pageIndex, pageSize) .Each(x => errorEntryList.Add(new ErrorLogEntry(this, x.IdString, x.Error))); return(repo.Count() > int.MaxValue ? int.MaxValue : (int)repo.Count()); }