Пример #1
0
 public void Add(AppointmentDTO appointment)
 {
     _appointmentRepository.Create(_mapper.Map <Appointment>(appointment));
     return;
 }
 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));
 }