public override int GetAmountOfRecords() { int amount = 0; try { using (var service = new DictionaryServiceClient()) { amount = service.GetAmountOfSkills(); } } catch (Exception e) { throw; } return(amount); }