Click here to Skip to main content
12,952,778 members (34,142 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have two intranet web services in my company to retrieve the employee information and organization information as well.These web services will be utilized by the developers for developing intranet web-based applications for the company.
I am trying to develop a simple console application that will retrieve the following information:

1. Get the employee information by entering the username
2. Get the organization (such as department, division...) information by the sap code
3. Find all the employees under the organization

**I already developed the first two items by creating two classes for each item, and now I am struggling with the third item due to the fact that I am a beginner in C#. I don't know how to come up with a list of all employees within the organization. I really appreciate any help that will show me how to implement this part. What I think I should do is develop a method where I can pass the sapCode of the organization to get the list of its employees. So Could you please help me in developing this third item?**
Posted 25-Sep-12 0:57am
Updated 19-Feb-13 7:22am
richcb 19-Feb-13 13:40pm
Please post the code you have so far so that we can better understand what you are trying to accomplish as well as provide suggestions on a solution.
Akbar Ali Hussain 19-Feb-13 13:41pm
You can expose the employee list as a Generic collection i.e. List<employee>.
1. Add a class "Employee" with properties which you plan to expose.
2. Read employee details from DB and fill the class. (or use ESQL if DB is compatible)
3. Add employee classes to a List and expose through webservice

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,389
CHill60 3,490
Maciej Los 3,103
Jochen Arndt 1,975
ppolymorphe 1,920

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 19 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100