コード例 #1
0
        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();
        }
コード例 #2
0
 public void Save(PatientDailyDiary PatientDailyDiary)
 {
     _patientDailyDiaryRepository.Add(PatientDailyDiary);
     _uow.Save();
 }