コード例 #1
0
 public void Add(AppointmentDTO appointment)
 {
     _appointmentRepository.Create(_mapper.Map <Appointment>(appointment));
     return;
 }
コード例 #2
0
 public int Create(AppointmentDTO dto)
 {
     return(_appointmentRepository.Create(dto));
 }
コード例 #3
0
 /// <summary> This method is calling <c>AppointmentRepository</c> to create new appointment. </summary>
 /// <param name="appointment"><c>appointment</c> is appointment we want to create.</param>
 /// <returns> Created appointment. </returns>
 public DoctorAppointment CreateRecommended(DoctorAppointment appointment)
 {
     return(_appointmentRepository.Create(appointment));
 }