public void Finalize(FinalizeAppointmentRequest request) { _endpoint.Send <IFinalizeAppointmentCommand>(new { AppointmentId = request.AppointmentId, Diagnostic = request.Diagnostic, MedicalHistory = request.MedicalHistory, MessageType = (typeof(IFinalizeAppointmentCommand)).Name, Timestamp = DateTimeOffset.UtcNow }).Wait(); }
public IActionResult Post([FromBody] FinalizeAppointmentRequest request) { _appointmentService.Finalize(request); return(NoContent()); }