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