am accessing a class from my webservice as
[WebMethod(EnableSession = true)]
public string fetchAbsentees(string date)
{
string data = string.Empty;
StudentAttendances students = new StudentAttendances(date);
SearchStudents fetchStudents =new SearchStudents(students);
data = jsonSerialize.Serialize(fetchStudents);
}
return data;
}
when I execute this code am getting the values from the StudentAttendance class, I have StudentId property along with attendancestatus, date etc in the StudentAttendance class....
in the SearchStudentClass I have a constructor with one parameter(to accept the StudentId), my question is how can I get the StudentId alone from students and pass it to SearchStudents........can anyone help me here