public JsonResult SavePaymentGatewayControl(PaymentGatewayControlViewModel paymentGatewayControlViewModel)
        {
            HttpResponseMessage response = new APIHelper.APICallMethod().GetHttpResponseMessage("SavePaymentGatewayControl", "AdminPanel", paymentGatewayControlViewModel);

            if (response.IsSuccessStatusCode)
            {
                var data = response.Content.ReadAsStringAsync().Result;
                ViewModel.ResponseModel.ResponseViewModel <Dictionary <string, bool> > dbBookingDetails = JsonConvert.DeserializeObject <ViewModel.ResponseModel.ResponseViewModel <Dictionary <string, bool> > >(data);
                if (dbBookingDetails.IdentityResult.Status == true)
                {
                    return(Json(new { code = 0, message = "Success" }));
                }
                else
                {
                    if (dbBookingDetails.IdentityResult.Message == "Invalid access details, Please log-out.")
                    {
                        return(Json(new { code = -99, message = "Please Login Again" }));
                    }
                    else
                    {
                        return(Json(new { code = -1, message = dbBookingDetails.IdentityResult.Message }));
                    }
                }
            }
            else
            {
                return(Json(new { code = -2, message = "failed" }));
            }
        }
        // GET: PaymentGatewayControl
        public ActionResult Index()
        {
            PaymentGatewayControlViewModel paymentGatewayControlViewModel = new PaymentGatewayControlViewModel()
            {
                EquipmentViewModels = GetAllEquipment(),
                GolferViewModels    = GetALLGolfer()
            };

            return(View(paymentGatewayControlViewModel));
        }