public ActionResult EditPayments(PaymentModel payment)
        {
            if (Convert.ToString(Session["key"]) != "admin")
            {
                return(RedirectToAction("Login", "Home"));
            }

            Patient_Api patientApi = new Patient_Api();

            var paymentsModel = patientApi.PayPayments(payment);

            return(View("~/Views/Administrator/AdminViewPayments.cshtml", paymentsModel.OrderBy(p => p.bill_ID)));
        }
        public ActionResult AdminPayPayments(PaymentModel payment)
        {
            if (Convert.ToString(Session["key"]) != "admin")
            {
                return(RedirectToAction("Login", "Home"));
            }

            Patient_Api patientApi = new Patient_Api();

            var paymentsModel = patientApi.PayPayments(payment);

            return(RedirectToAction("ViewPatientsForPayments"));
            //return View("~/Views/Patient/PatientPayments.cshtml", paymentsModel);
        }