private GetStaffAppointmentsRequest getStaffAppointments(GetStaffAppointmentsModel model)
        {
            var request = APISettings.getBaseAppointmentRequest<GetStaffAppointmentsRequest>(model);

            System.Diagnostics.Debug.WriteLine("Request is: " + request);

            request.StaffIDs = new long[] {model.StaffID};
            request.StartDate = model.StartDate;
            request.EndDate = model.EndDate;

            return request;
        }
        public ActionResult GetStaffAppointmentsRequest(GetStaffAppointmentsModel model)
        {
            var request = getStaffAppointments(model);
            var response = appointmentService.GetStaffAppointments(request);

            @ViewBag.Request_JSON = JsonConvert.SerializeObject(request, Formatting.Indented, new JsonConverter[] { new StringEnumConverter() });
            @ViewBag.Response_JSON = JsonConvert.SerializeObject(response, Formatting.Indented, new JsonConverter[] { new StringEnumConverter() });

            @ViewBag.Request_SOAP = SoapSerializer.SerializeToSoap<GetStaffAppointmentsRequest>(request);
            @ViewBag.Response_SOAP = SoapSerializer.SerializeToSoap<GetStaffAppointmentsResult>(response);

            return View();
        }