Beispiel #1
0
        public async Task <SwapShiftResponse.Response> SubmitApproval(string tenantId, string jSession, string reqId, string personNumber, string status, string querySpan, string comment, string note)
        {
            string          xmlRequest      = CreateApprovalRequest(personNumber, reqId, status, querySpan, comment, note);
            TenantMapEntity tenantMapEntity = await azureTableStorageHelper.ExecuteQueryUsingPointQueryAsync <TenantMapEntity>(Constants.ActivityChannelId, tenantId);

            var tupleResponse = await ApiHelper.Instance.SendSoapPostRequest(tenantMapEntity.EndpointUrl, ApiConstants.SoapEnvOpen, xmlRequest, ApiConstants.SoapEnvClose, jSession);

            SwapShiftResponse.Response timeOffResponse = ProcessSwapShiftResponse(tupleResponse.Item1);

            return(timeOffResponse);
        }
Beispiel #2
0
        public async Task <SwapShiftResponse.Response> SubmitSwapShift(string tenantId, string jSession, string personNumber, string reqId, string querySpan, string comment)
        {
            try
            {
                string          xmlRequest      = CreateSwapShiftSubmitRequest(personNumber, reqId, querySpan, comment);
                TenantMapEntity tenantMapEntity = await azureTableStorageHelper.ExecuteQueryUsingPointQueryAsync <TenantMapEntity>(Constants.ActivityChannelId, tenantId);

                var tupleResponse = await ApiHelper.Instance.SendSoapPostRequest(tenantMapEntity.EndpointUrl, ApiConstants.SoapEnvOpen, xmlRequest, ApiConstants.SoapEnvClose, jSession);

                SwapShiftResponse.Response Response = ProcessSwapShiftDraftResponse(tupleResponse.Item1);
                return(Response);
            }
            catch (Exception)
            {
                throw;
            }
        }