public JsonResult saveExaminationData(SaveDocotor Doctormodel) { try { ArogyaParivarEntities context = new ArogyaParivarEntities(); T_Examination modelScreenings = new T_Examination() { ComplaintID = Doctormodel.ChiefComplaintID, PresentingComplaint = Doctormodel.HistoryPresentingComplaint, PastMedicalHistory = Doctormodel.PastMedicalHistory, PastSurgicalHistory = Doctormodel.PastSurgicalHistory, FamilyHistory = Doctormodel.FamilyHistory, CurrentMedication = Doctormodel.CurrentMedication, Diagnosis = Doctormodel.Diagnosis, Tests = Doctormodel.Tests, TreatmentPlan = Doctormodel.TreatMentPlan, ArogyaID = Session["arogyid"].ToString(), Token_Number = Convert.ToInt32(Session["Token"]), CreateDate = DateTime.Now, Active = true, UserID = Convert.ToInt32(Session["UserID"]), ScreeningID = Doctormodel.ScreeningoutcomeID }; context.T_Examination.Add(modelScreenings); context.SaveChanges(); return(Json("Data Saved", JsonRequestBehavior.AllowGet)); } catch { return(Json(-1, JsonRequestBehavior.AllowGet)); } }
public JsonResult saveExaminationData(SaveDocotor Doctormodel) { try { ArogyaParivarEntities context = new ArogyaParivarEntities(); T_Examination modelScreenings = new T_Examination() { ComplaintID = Doctormodel.ChiefComplaintID, PresentingComplaint = Doctormodel.HistoryPresentingComplaint, PastMedicalHistory = Doctormodel.PastMedicalHistory, PastSurgicalHistory = Doctormodel.PastSurgicalHistory, FamilyHistory = Doctormodel.FamilyHistory, CurrentMedication = Doctormodel.CurrentMedication, Diagnosis = Doctormodel.Diagnosis, Tests = Doctormodel.Tests, TreatmentPlan = Doctormodel.TreatMentPlan, ArogyaID = Session["arogyid"].ToString(), Token_Number = Convert.ToInt32(Session["Token"]), CreateDate = DateTime.Now, Active = true, UserID = Convert.ToInt32(Session["UserID"]), ScreeningID = Doctormodel.ScreeningoutcomeID }; context.T_Examination.Add(modelScreenings); context.SaveChanges(); return Json("Data Saved", JsonRequestBehavior.AllowGet); } catch { return Json(-1, JsonRequestBehavior.AllowGet); } }