Beispiel #1
0
        public PagedResult <EmployerRecord> Search(string searchText, int page, int pageSize, bool test = false)
        {
            int totalRecords;
            var searchResults = CompaniesHouseAPI.SearchEmployers(out totalRecords, searchText, page, pageSize, test);
            var result        = new PagedResult <EmployerRecord>();

            result.RowCount    = totalRecords;
            result.CurrentPage = page;
            result.PageSize    = pageSize;
            var pageCount = (double)result.RowCount / pageSize;

            result.PageCount = (int)Math.Ceiling(pageCount);
            result.Results   = searchResults;
            return(result);
        }
Beispiel #2
0
 public string GetSicCodes(string companyNumber)
 {
     return(CompaniesHouseAPI.GetSicCodes(companyNumber));
 }