public ActionResult DailyDiaryJson(string DiaryNotes, string Priority) { PatientDailyDiary patientDailyDiary = new PatientDailyDiary(); patientDailyDiary.CustomerID = (int)Session["CustID"]; patientDailyDiary.DiaryNotes = DiaryNotes; patientDailyDiary.Priority = Convert.ToInt16(Priority); patientDailyDiary.PatientID = (int)Session["PatientID"]; patientDailyDiary.EntryDate = DateTime.Now; _patientDailyDiaryService.Save(patientDailyDiary); return new EmptyResult(); }
public void Save(PatientDailyDiary PatientDailyDiary) { _patientDailyDiaryRepository.Add(PatientDailyDiary); _uow.Save(); }