public void Add(AppointmentDTO appointment) { _appointmentRepository.Create(_mapper.Map <Appointment>(appointment)); return; }
public int Create(AppointmentDTO dto) { return(_appointmentRepository.Create(dto)); }
/// <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)); }