public int savePatientPharmacy(string TreatmentProgram, string PeriodTaken, string TreatmentPlan, string TreatmentPlanReason, string RegimenLine, string Regimen, string pmscm, string PrescriptionDate, string DispensedDate, string drugPrescription, string regimenText) { try { PatientEncounterLogic patientEncounter = new PatientEncounterLogic(); int val = patientEncounter.saveUpdatePharmacy(Session["ExistingRecordPatientMasterVisitID"].ToString() == "0" ? Session["PatientMasterVisitID"].ToString() : Session["ExistingRecordPatientMasterVisitID"].ToString(), Session["PatientPK"].ToString(), Session["AppLocationId"].ToString(), Session["AppUserId"].ToString(), Session["AppUserId"].ToString(), Session["AppUserId"].ToString(), RegimenLine, Session["ModuleId"].ToString(), pmscm, drugPrescription, TreatmentProgram, PeriodTaken, TreatmentPlan, TreatmentPlanReason, Regimen, regimenText, PrescriptionDate, DispensedDate); return(val); } catch (Exception e) { throw new Exception(e.Message); } }