コード例 #1
0
        public IActionResult AddAppointmentAsync([FromBody] Appointment appointment, Guid userId)
        {
            var _appointment = _appointmentRepository.AddAppointmentAsync(appointment, userId);

            if (_appointment == null)
            {
                return(BadRequest("An Error Occurred While Adding the Appointment."));
            }

            return(Ok(_appointment));
        }