public ActionResult <Appointment> CreateAppointment(Appointment appointment) { var patient = appointment.Patient; patient.Appointments.Add(appointment); DataStorage.CreateAppointment(appointment); return(Ok(new { Message = "Success" })); }
public ActionResult <Appointment> CreateAppointment(Appointment appointment) { var patient = appointment.Patient; patient.Appointments.Add(appointment); DataStorage.CreateAppointment(appointment); return(Ok(new { Message = "Success" })); }