Exemple #1
0
        public async Task <bool> ImportApproversAsync(long organisationId, TimeApproverImport timeApproverImport)
        {
            IHttpRestRequest request = GetRequest(APIControllerRoutes.TimeEntryController.IMPORTAPPROVERS, HttpMethod.Post);

            request.AddUrlSegment("organisationId", organisationId.ToString());
            request.AddJsonBody(timeApproverImport);
            IHttpRestResponse response = await ExecuteAsync(request).ConfigureAwait(false);

            return(response.StatusCode == System.Net.HttpStatusCode.OK);
        }
Exemple #2
0
        public bool ImportApprovers(long organisationId, TimeApproverImport timeApproverImport)
        {
            IHttpRestRequest request = GetRequest(APIControllerRoutes.TimeEntryController.IMPORTAPPROVERS, HttpMethod.Post);

            request.AddUrlSegment("organisationId", organisationId.ToString());
            request.AddJsonBody(timeApproverImport);
            IHttpRestResponse response = Execute(request);

            return(response.StatusCode == System.Net.HttpStatusCode.OK);
        }