public IActionResult Post(DoctorAppointment appointment) { DoctorAppointment doctorAppointment = regularAppointmentService.CreateRegular(appointment); if (doctorAppointment == null) { return(BadRequest()); } return(Ok(ViewAppointmentAdapter.AppointmentToViewAppointmenDto(doctorAppointment))); }