示例#1
0
        public void CreateDiaryEntry([FromBody] DoctorDiary objDoctorDiary)
        {
            _logger.LogInformation(objDoctorDiary.DoctorId.ToString());
            _logger.LogInformation(objDoctorDiary.HospitalId.ToString());
            _logger.LogInformation(objDoctorDiary.AppointedTime.ToString());

            _repos.CreateDiaryEntry(objDoctorDiary);
        }
示例#2
0
 public void CreateDiaryEntry(DoctorDiary objDoctorDiary)
 {
     try
     {
         using (var conn = OpenConnection())
         {
             conn.Execute("CALL public.usp_createdocdiaryentry(@DoctorId,@HospitalId,@WorkType,@AppointedTime)",
                          new { DoctorId = objDoctorDiary.DoctorId, HospitalId = objDoctorDiary.HospitalId, WorkType = objDoctorDiary.WorkType, AppointedTime = objDoctorDiary.AppointedTime }, null, null);
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }