Ejemplo n.º 1
0
        public IActionResult GetAvailable(SearchAppointmentsStandardDTO appointmentsDTO)
        {
            List <Appointment> appointments     = _appointmentService.GetAvailableBy(appointmentsDTO.DoctorId, appointmentsDTO.Date).ToList();
            List <AvailableAppointmentsDTO> dto = AppointmentMapper.AppointmentsToAvailableAppointmentsDTO(appointments);

            return(Ok(dto));
        }
Ejemplo n.º 2
0
        public IActionResult Get()
        {
            List <Appointment> appointments     = _appointmentService.InitializeAppointments("2406978890047", new DateTime(2020, 12, 5));
            List <AvailableAppointmentsDTO> dto = AppointmentMapper.AppointmentsToAvailableAppointmentsDTO(appointments);

            return(Ok(dto));
        }