public static async Task <IActionResult> Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = null)] HttpRequest req,
                                                     ILogger log,
                                                     [Inject] IApprenticeshipService apprenticeshipService)
        {
            try
            {
                var allCourses = await apprenticeshipService.GetTotalLiveApprenticeships();

                return(new OkObjectResult(allCourses));
            }
            catch (Exception e)
            {
                return(new InternalServerErrorObjectResult(e));
            }
        }