public async Task <HttpResponseMessage> ArchiveCoursesExceptBulkUploadReadytoGoLive(int UKPRN, RecordStatus StatusToBeChangedTo)
        {
            Throw.IfNull <int>(UKPRN, nameof(UKPRN));
            Throw.IfLessThan(0, UKPRN, nameof(UKPRN));

            var allCourses = await GetCoursesByUKPRN(UKPRN);

            int statusTobeChangeTo = (int)StatusToBeChangedTo;

            try
            {
                using (var client = _cosmosDbHelper.GetClient())
                {
                    var spResults = await _cosmosDbHelper.ArchiveCoursesExceptBulkUploadReadytoGoLive(client, _settings.CoursesCollectionId, "ArchiveCoursesExceptBulkUploadReadytoGoLive", UKPRN, statusTobeChangeTo, UKPRN);

                    return(new HttpResponseMessage(HttpStatusCode.OK));
                }
            }
            catch (Exception)
            {
                return(new HttpResponseMessage(HttpStatusCode.ExpectationFailed));
            }
        }