public ReturnValue DeleteBooking(HostSecurityToken oHostSecurityToken, DeleteData deleteData) { ReturnValue returnValue = null; if (Functions.ValidateIWSToken(oHostSecurityToken)) { oDiaryService = new DiaryService(); returnValue = oDiaryService.DeleteBooking(Functions.GetLogonIdFromToken(oHostSecurityToken), deleteData); } else { returnValue = new ReturnValue(); returnValue.Success = false; returnValue.Message = "Invalid Token"; } return returnValue; }
public AppointmentSearchReturnValue AppointmentSearch(HostSecurityToken oHostSecurityToken, CollectionRequest collectionRequest, AppointmentSearchCriteria criteria) { AppointmentSearchReturnValue returnValue = null; if (Functions.ValidateIWSToken(oHostSecurityToken)) { oDiaryService = new DiaryService(); returnValue = oDiaryService.AppointmentSearch(Functions.GetLogonIdFromToken(oHostSecurityToken), collectionRequest, criteria); } else { returnValue = new AppointmentSearchReturnValue(); returnValue.Success = false; returnValue.Message = "Invalid Token"; } return returnValue; }
public AppointmentReturnValue GetAppointmentDetails(HostSecurityToken oHostSecurityToken, Int32 appointmentId) { AppointmentReturnValue returnValue = null; if (Functions.ValidateIWSToken(oHostSecurityToken)) { oDiaryService = new DiaryService(); returnValue = oDiaryService.GetAppointmentDetails(Functions.GetLogonIdFromToken(oHostSecurityToken), appointmentId); } else { returnValue = new AppointmentReturnValue(); returnValue.Success = false; returnValue.Message = "Invalid Token"; } return returnValue; }
public TaskReturnValue SaveTask(HostSecurityToken oHostSecurityToken, Task taskDetails) { TaskReturnValue returnValue = new TaskReturnValue(); if (Functions.ValidateIWSToken(oHostSecurityToken)) { oDiaryService = new DiaryService(); returnValue = oDiaryService.SaveTask(Functions.GetLogonIdFromToken(oHostSecurityToken), taskDetails); } else { returnValue = new TaskReturnValue(); returnValue.Success = false; returnValue.Message = "Invalid Token"; } return returnValue; }
public DiaryParameterReturnValue GetTaskTypes(HostSecurityToken oHostSecurityToken, CollectionRequest collectionRequest) { DiaryParameterReturnValue returnValue = null; if (Functions.ValidateIWSToken(oHostSecurityToken)) { oDiaryService = new DiaryService(); returnValue = oDiaryService.GetTaskTypes(Functions.GetLogonIdFromToken(oHostSecurityToken), collectionRequest); } else { returnValue = new DiaryParameterReturnValue(); returnValue.Success = false; returnValue.Message = "Invalid Token"; } return returnValue; }
public TaskReturnValue GetMemberTaskDetails(HostSecurityToken oHostSecurityToken, Int32 taskId) { TaskReturnValue returnValue = null; if (Functions.ValidateIWSToken(oHostSecurityToken)) { oDiaryService = new DiaryService(); returnValue = oDiaryService.GetMemberTaskDetails(Functions.GetLogonIdFromToken(oHostSecurityToken), taskId); } else { returnValue = new TaskReturnValue(); returnValue.Success = false; returnValue.Message = "Invalid Token"; } return returnValue; }
public CancellationCodeSearchReturnValue GetBookingCancelledReasons(HostSecurityToken oHostSecurityToken, CollectionRequest collectionRequest) { CancellationCodeSearchReturnValue returnValue = null; if (Functions.ValidateIWSToken(oHostSecurityToken)) { oDiaryService = new DiaryService(); returnValue = oDiaryService.GetBookingCancelledReasons(Functions.GetLogonIdFromToken(oHostSecurityToken), collectionRequest); } else { returnValue = new CancellationCodeSearchReturnValue(); returnValue.Success = false; returnValue.Message = "Invalid Token"; } return returnValue; }