public bool AddEducationalTraining(Int64 subjectid, string institution, string location,
string degree, string enddate, string fieldOfStudy, XmlDocument PropertyListXML)
{
ActivityLog(PropertyListXML, subjectid, institution + ", " + location + ", ", degree + ", " + enddate + ", " + fieldOfStudy);
bool error = false;
try
{
EducationalTrainingRequest eatr = new EducationalTrainingRequest();
eatr.EducationalTrainingForID = new StoreNodeParam();
eatr.EducationalTrainingForID.Value = subjectid;
eatr.EducationalTrainingForID.ParamOrdinal = 0;
eatr.Institution = new StoreNodeParam();
eatr.Institution.Value = institution;
eatr.Institution.ParamOrdinal = 1;
eatr.Location = new StoreNodeParam();
eatr.Location.Value = location;
eatr.Location.ParamOrdinal = 2;
eatr.Degree = new StoreNodeParam();
eatr.Degree.Value = degree;
eatr.Degree.ParamOrdinal = 3;
eatr.EndDate = new StoreNodeParam();
eatr.EndDate.Value = enddate;
eatr.EndDate.ParamOrdinal = 4;
eatr.FieldOfStudy = new StoreNodeParam();
eatr.FieldOfStudy.Value = fieldOfStudy;
eatr.FieldOfStudy.ParamOrdinal = 5;
error = this.StoreEducationalTrainingReceipt(eatr);
}
catch (Exception e)
{
Framework.Utilities.DebugLogging.Log(e.Message + e.StackTrace);
throw new Exception(e.Message);
}
return error;
}