Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
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
Updated 19-Feb-13 7:22am
v3
Comments
Richard C Bishop 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900