public ActionResult DetailPartial(long Id = 0)
        {
            int userId = (int)Session["userId"];


            PaymentInModel paymentInModel;

            paymentInService = new PaymentInService();

            if (Id == 0)
            {
                paymentInModel           = paymentInService.GetNewModel(userId);
                paymentInModel._FormMode = FormModeEnum.New;
            }
            else
            {
                paymentInModel = paymentInService.GetById(userId, Id);
                if (paymentInModel != null)
                {
                    paymentInModel._FormMode = FormModeEnum.Edit;
                }
                else
                {
                    paymentInModel           = paymentInService.GetNewModel(userId);
                    paymentInModel._FormMode = FormModeEnum.New;
                }
            }

            return(PartialView(VIEW_FORM_PARTIAL, paymentInModel));
        }
        public ActionResult Detail(long Id = 0)
        {
            int userId = (int)Session["userId"];


            paymentInService = new PaymentInService();
            PaymentInModel paymentInModel;

            if (Id == 0)
            {
                paymentInModel           = paymentInService.GetNewModel(userId);
                paymentInModel._FormMode = FormModeEnum.New;
            }
            else
            {
                paymentInService         = new PaymentInService();
                paymentInModel           = paymentInService.GetById(userId, Id);
                paymentInModel._FormMode = FormModeEnum.Edit;
            }

            return(View(VIEW_DETAIL, paymentInModel));
        }