public int savePatientEncounterTS(string VisitDate, string VisitScheduled, string VisitBy) { PatientEncounterLogic patientEncounter = new PatientEncounterLogic(); int val = patientEncounter.savePatientEncounterTS(Session["ExistingRecordPatientMasterVisitID"].ToString() == "0" ? Session["PatientMasterVisitID"].ToString() : Session["ExistingRecordPatientMasterVisitID"].ToString(), Session["PatientPK"].ToString(), "203", VisitDate, VisitScheduled, VisitBy, Convert.ToInt32(Session["AppUserId"].ToString())); return(val); }