Example #1
0
        public async Task AddDriverCertificationAsync(long organisationGroupId, DriverCertification driverCertification)
        {
            IHttpRestRequest request = GetRequest(APIControllerRoutes.DriverCertificationController.ADDDRIVERCERTIFICATION, HttpMethod.Post);

            request.AddUrlSegment("organisationId", organisationGroupId.ToString());
            request.AddJsonBody(driverCertification);
            await ExecuteAsync(request).ConfigureAwait(false);
        }
Example #2
0
        public void AddDriverCertification(long organisationGroupId, DriverCertification driverCertification)
        {
            IHttpRestRequest request = GetRequest(APIControllerRoutes.DriverCertificationController.ADDDRIVERCERTIFICATION, HttpMethod.Post);

            request.AddUrlSegment("organisationId", organisationGroupId.ToString());
            request.AddJsonBody(driverCertification);
            Execute(request);
        }