public async Task <(ResponseCode code, List <Job> result)> SearchJobsAsync(string keyword)
        {
            var pollyResult = await Policy.ExecuteAndCaptureAsync(async() => await api.SearchJobs(keyword, Constants.ApiManagementKey));

            if (pollyResult.Result != null)
            {
                return(ResponseCode.Success, pollyResult.Result);
            }

            return(ResponseCode.Error, null);
        }
        public async Task <(ResponseCode code, List <Job> result)> SearchJobsAsync(string keyword)
        {
            // Create an instance of the Refit RestService for the job interface.
            IJobServiceAPI api = RestService.For <IJobServiceAPI>(Constants.BaseUrl);

            var pollyResult = await Policy.ExecuteAndCaptureAsync(async() => await api.SearchJobs(keyword, Constants.ApiManagementKey));

            if (pollyResult.Result != null)
            {
                return(ResponseCode.Success, pollyResult.Result);
            }

            return(ResponseCode.Error, null);
        }
        public async Task <(ResponseCode code, List <Job> result)> SearchJobsAsync(string keyword, bool enableSuggestions = false)
        {
            // Create an instance of the Refit RestService for the job interface.
            IJobServiceAPI api = GetManagedApiService <IJobServiceAPI>();

            var pollyResult = await Policy.ExecuteAndCaptureAsync(async() => await api.SearchJobs(keyword, enableSuggestions));

            if (pollyResult.Result != null)
            {
                return(ResponseCode.Success, pollyResult.Result);
            }

            return(ResponseCode.Error, null);
        }