public ActionResult <RegisterForAppointmentDto> RegisterForAppointment(RegisterForAppointmentDto dto) { if (!ModelState.IsValid) { return(BadRequest()); } _service.RegisterForAppointment(dto); return(dto); }
public ActionResult <bool> IsRegisteredForAppointment(long accountId, long appointmentId) { if (!ModelState.IsValid) { return(BadRequest()); } RegisterForAppointmentDto dto = new RegisterForAppointmentDto { AccountId = accountId, AppointmentId = appointmentId }; return(_service.IsRegisteredForAppointment(dto)); }