Click here to Skip to main content
11,481,754 members (63,523 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 1:57am
Edited 19-Feb-13 8:22am
v3
Comments
richcb at 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 at 19-Feb-13 13:41pm
   
You can expose the employee list as a Generic collection i.e. List.
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)



Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 19 Feb 2013
Copyright © CodeProject, 1999-2015
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