Ejemplo n.º 1
0
        public async Task <ActionResult <ObjectModel <AppointmentModel> > > PostAppointment([FromBody] AppointmentModel appointmentModel)
        {
            ObjectModel <AppointmentModel> result = new ObjectModel <AppointmentModel>();

            result.Data = await _jobsService.AddAppointmentAsync(appointmentModel);

            return(Ok(result));
        }