public IndividualAppointmentResponse UpdateAppointment(Appointment appointment)
 {
     var body = appointment ;
     IndividualAppointmentResponse individualAppointmentResponse = new IndividualAppointmentResponse();
     Appointment retAppointment = GenericPut<Appointment>(string.Format("appointment/{0}", appointment.Id), body);
     individualAppointmentResponse.Appointment = appointment;
     return individualAppointmentResponse;
 }
        public IndividualAppointmentResponse CreateAppointment(Appointment appointment)
        {
            var body = appointment; //new { appointment };
            IndividualAppointmentResponse individualAppointmentResponse = new IndividualAppointmentResponse();
            Appointment retAppointment = GenericPost<Appointment>("appointment", body);
            if (retAppointment != null)
            {
                appointment.Id = retAppointment.Id;
                individualAppointmentResponse.Appointment = appointment;
            }
            return individualAppointmentResponse;

            //return GenericPost<IndividualAppointmentResponse>("appointments.json", body);
        }
 public async Task<IndividualAppointmentResponse> CreateAppointmentAsync(Appointment appointment)
 {
     var body = new { appointment };
     return await GenericPostAsync<IndividualAppointmentResponse>("appointments.json", body);
 }
 public async Task<IndividualAppointmentResponse> UpdateAppointmentAsync(Appointment appointment)
 {
     var body = new { appointment };
     return await GenericPutAsync<IndividualAppointmentResponse>(string.Format("appointments/{0}.json", appointment.Id), body);
 }