public ActionResult Edit(PaymentMethodViewModel model)
        {
            model.Patients = PatientManager.GetAllPatient();
            model.Services = ServiceManager.GetAllService();

            if (model.PaymentMethodId > 0)
            {
                var paymentMethod = PaymentMethodManager.GetPaymentbyId(model.PaymentMethodId);

                model.PaymentMethodId = paymentMethod.PaymentMethodId;
                model.PatientId       = paymentMethod.PatientId;
                model.ServiceId       = paymentMethod.ServiceId;
                model.DiscountAmount  = paymentMethod.DiscountAmount;
                model.Charge          = paymentMethod.Charge;
                model.TotalCharge     = paymentMethod.TotalCharge;

                model.Paid         = paymentMethod.Paid;
                model.Due          = paymentMethod.Due;
                model.Date         = paymentMethod.Date;
                model.PaymentType  = paymentMethod.PaymentType;
                model.CreatedDate  = paymentMethod.CreatedDate;
                model.LastPaidDate = paymentMethod.LastPaidDate;
            }
            return(View(model));
        }