public static XmlDocument GetAttendanceReadForGroup(DateTime forDate, DateTime toDate, int GroupID)
 {
     SIMS.Processes.TPAttendanceRead ATR = new SIMS.Processes.TPAttendanceRead();
     // XML Document needed to get the codes
     System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
     // This is the actual call to get the codes
     doc.InnerXml = ATR.GetXmlSessionAttendancesExtended(0, GroupID, forDate.Date, toDate);
     return(doc);
 }
 /// <summary>
 /// This call returns the marks for the specified student on the specified date
 /// 00:00 to 23:59
 /// </summary>
 /// <param name="forDate"></param>
 /// <param name="StudentId"></param>
 /// <returns></returns>
 public static XmlDocument GetAttendanceRead(DateTime forDate, int StudentId)
 {
     SIMS.Processes.TPAttendanceRead ATR = new SIMS.Processes.TPAttendanceRead();
     // XML Document needed to get the codes
     System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
     // This is the actual call to get the codes
     doc.InnerXml = ATR.GetXmlSessionAttendancesExtended(StudentId, 0, forDate.Date, forDate.Date.AddDays(1).AddMinutes(-1));
     return(doc);
 }