public async Task <IActionResult> PaymentStations()
        {
            ViewData["Message"] = "Pay Stations";
            var viewModel = new PayStationViewModel();

            //use this for MuleSoft static data
            //var baseUri = _applicationSettings.MockServiceStaticResponses.BaseUri.PayStations;
            //var endpoint = "/api/PayStation/GetAllPayStations";

            //use this for the WebApi solution
            //var baseUri = _applicationSettings.WebApi.BaseUri.PayStations;
            //var endpoint = "/v1/PayStation/GetAllPaymentStations";

            //use this for the Azure hosted WebApi solution
            var baseUri  = _applicationSettings.AzureWebApi.BaseUri.PayStations;
            var endpoint = "/v1/PayStation/GetAllPaymentStations";

            using (var client = new HttpClient())
            {
                List <PaymentStationRecord> payStationList = await RunAsyncPayStations(client, baseUri, endpoint);

                viewModel.PayStations = payStationList;
            }

            return(View(viewModel));
        }
        //[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
        public async Task <IActionResult> PaymentStationById(string id)
        {
            ViewData["Message"] = "Pay Stations By Id";
            var viewModel = new PayStationViewModel();

            //use this for MuleSoft static data
            //var baseUri = _applicationSettings.MockServiceStaticResponses.BaseUri.PayStations;
            //var endpoint = "/api/PayStation/GetAllPayStations";

            //use this for the WebApi solution
            var baseUri  = _applicationSettings.WebApi.BaseUri.PayStations;
            var endpoint = "/v1/PayStation/GetAllPaymentStations";

            using (var client = new HttpClient())
            {
                List <PaymentStationRecord> payStationList = await RunAsyncPayStations(client, baseUri, endpoint);

                PaymentStationRecord paystation = payStationList.FirstOrDefault(x => x.PayStationId.Equals(id));

                var payStationListById = new List <PaymentStationRecord>();
                payStationListById.Add(paystation);

                viewModel.PayStations = payStationListById;
            }


            return(View("PaymentStations", viewModel));
        }
        public async Task <IActionResult> Testing()
        {
            ViewData["Message"] = "Pay Stations via docker container";
            var viewModel = new PayStationViewModel();

            var baseUri  = _applicationSettings.AzureWebApiContainer.BaseUri.PayStations;
            var endpoint = "/v1/PayStation/GetAllPaymentStations";

            using (var client = new HttpClient())
            {
                List <PaymentStationRecord> payStationList = await RunAsyncPayStations(client, baseUri, endpoint);

                viewModel.PayStations = payStationList;
            }

            return(View("PaymentStations", viewModel));
        }
        //[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
        public async Task <IActionResult> GetPaymentStationById(string id)
        {
            ViewData["Message"] = "Pay Stations By Id";
            var viewModel = new PayStationViewModel();

            var baseUri  = _applicationSettings.WebApi.BaseUri.PayStations;
            var endpoint = "/v1/PayStation/GetPaymentStationById" + "?id=" + id;

            using (var client = new HttpClient())
            {
                var payStationList = await RunAsyncPayStations(client, baseUri, endpoint);

                PaymentStationRecord paystation = payStationList.FirstOrDefault(x => x.PayStationId.Equals(id));

                var payStationListById = new List <PaymentStationRecord>();
                payStationListById.Add(paystation);

                viewModel.PayStations = payStationListById;
            }


            return(View("PaymentStations", viewModel));
        }