public ActionResult ClearSearch(Models.ViewNotesModel model, int?id) { Session["patientID"] = 0; Session["patientName"] = ""; Session["visitID"] = 0; Session["visitDate"] = ""; return(RedirectToAction("Index", "ViewNotes")); }
public ActionResult Index(Models.ViewNotesModel model) { string sVisitID = Session["visitID"].ToString(); int visitID = Convert.ToInt32(sVisitID); if (true) //if (ModelState.IsValid) { if (visitID == 0) { //int iRecordsCreated = DataLibrary.BusinessLogic.ViewNotesProcessor.CreateStudent(0, student.name, student.address, student.age, student.standard, // student.percent, student.addedOn, student.status); } else { DataLibrary.BusinessLogic.ViewNotesProcessor.UpdateNote(visitID, model.SubjectiveText, model.ObjectiveText, model.AssessmentText, model.PlanText, model.Duration, model.Resource_ID, model.Cancellation, model.NoShow); } //TempData["Result"] = createdId.Value == null ? result.Value : result.Value + " New Student Id is " + createdId.Value; } return(View(model)); }