コード例 #1
0
        public ActionResult <RegisterForAppointmentDto> RegisterForAppointment(RegisterForAppointmentDto dto)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            _service.RegisterForAppointment(dto);

            return(dto);
        }
コード例 #2
0
        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));
        }