private static List <ApprenticeshipModel> GetApprenticeships(ApprenticeshipFinderRequest appRequest)
        {
            var appResponse = new ApprenticeshipFinderResponse();

            appResponse.Apprenticeships = new List <ApprenticeshipModel>();

            var client = new RestClient("https://localhost:44364/api/Apprenticeship/GetApprenticeships");

            client.Timeout = -1;
            var request = new RestRequest(Method.POST);

            request.AddHeader("ApiKey", "Th4ZbP42RkOnrT47AqEt");
            request.AddParameter("application/json", ParameterType.RequestBody);
            string json = JsonConvert.SerializeObject(appRequest);

            request.AddParameter("application/json",
                                 json +
                                 "\r\n", ParameterType.RequestBody);
            IRestResponse response = client.Execute(request);

            appResponse = JsonConvert.DeserializeObject <ApprenticeshipFinderResponse>(response.Content);
            Console.WriteLine(response.Content);

            return(appResponse.Apprenticeships);
        }
        public ApprenticeshipFinderResponse GetApprenticeships(ApprenticeshipFinderRequest request)
        {
            var response  = new ApprenticeshipFinderResponse();
            var retriever = new DatabaseRetriever();

            response.Apprenticeships = retriever.GetMultipleApprenticeships(request);

            return(response);
        }