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); }
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); }