public ActionResult AddOrUpdateAvailabilitiesRequest(AddOrUpdateAvailabilitiesModel model) { var request = addOrUpdateAvailabilities(model); var response = appointmentService.AddOrUpdateAvailabilities(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<AddOrUpdateAvailabilitiesRequest>(request); @ViewBag.Response_SOAP = SoapSerializer.SerializeToSoap<AddOrUpdateAvailabilitiesResult>(response); return View(); }
/**********************************************AddOrUpdateAvailabilities*****************************************************/ private AppointmentService.AddOrUpdateAvailabilitiesRequest addOrUpdateAvailabilities( AddOrUpdateAvailabilitiesModel model) { var request = APISettings.getBaseAppointmentRequest<AddOrUpdateAvailabilitiesRequest>(model); request.UpdateAction = model.UpdateAction; request.Test = model.Test; request.AvailabilityIDs = model.AvalibilityIDs; request.LocationID = model.LocationID; request.StaffIDs = model.StaffIDs; request.ProgramIDs = model.ProgramIDs; request.StartDateTime = model.StartDate; request.EndDateTime = model.EndDate; request.DaysOfWeek = model.DaysOfWeek; request.UnavailableDescription = model.UnavailableDescription; request.IsUnavailable = model.IsUnavailable; request.PublicDisplay = model.PublicDisplay; return request; }