Click or drag to resize

WSUserPayAdjustDeleteUserPayAdjust Method

Deletes a list of user pay adjustments by its IDList and returns a list of DeleteResult status structures

Namespace: AppOne.Services.V2.Methods
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public DeleteUserPayAdjustOut DeleteUserPayAdjust(
	DeleteUserPayAdjustIn input
)

Parameters

input  DeleteUserPayAdjustIn
A new DeleteUserPayAdjustIn object

Return Value

DeleteUserPayAdjustOut
A list of DeleteResult status structures
Remarks
Deletes a list of user pay adjustments by its IDList and returns a list of DeleteResult status structures.
The structures give a status for each of the IDList passed in.

Note  Note
The inbound IDList will also correspond directly with the GetUserPayAdjustModel.ID property. Use GetUserPayAdjustModel.ID value to fill in the IDList.
Example
JSON Request
{
    "AuthToken":"...",
    "IDList":[103,104]
}
JSON Response
{
   "Report":    {
      "APIVersion": "2.0",
      "ProcessTime": "0.0346737",
      "RequestTime": "/Date(1474401878928-0700)/",
      "ResponseTime": "/Date(1474401878963-0700)/",
      "Results": 2
   },
   "Results":    [
            {
         "ID": 103,
         "IsDeleted": true,
         "Message": "Pay adjustment successfully deleted",
         "Status": 1
      },
            {
         "ID": 104,
         "IsDeleted": true,
         "Message": "Pay adjustment successfully deleted",
         "Status": 1
      }
   ]
}
SOAP: C# WCF Sample
private void DeletePayAdjustments(List<int> ids)
{
    try
    {
        var actionTestLogic = new Action<SoapServiceV2.ServiceRouterClient>((client) =>
        {
            // ==================================
            //Delete PayAdjustment
            bool pass = true;
            SoapServiceV2.DeleteUserPayAdjustRequest request1 = new SoapServiceV2.DeleteUserPayAdjustRequest();
            request1.input = new SoapServiceV2.DeleteUserPayAdjustIn
            {
                AuthToken = AuthToken,
                IDList = ids
            };
            SoapServiceV2.DeleteUserPayAdjustResponse response1 = client.DeleteUserPayAdjust(request1);
            pass = (response1.DeleteUserPayAdjustResult.Results != null && response1.DeleteUserPayAdjustResult.Results.Count > 0) ? true : false;
            Assert.IsTrue(pass);

        });

        RunServiceClient(actionTestLogic);
    }
    catch (FaultException<SoapServiceV2.ServiceException> fe)
    {
        Assert.Fail(fe.Detail.Message);
    }
}
See Also