コード例 #1
0
        public ActionResult AddDetail(PaymentDetailViewModel model)
        {
            PaymentDetailSessionWrapper.AddDetail(model);
            var ajaxViewModel = new AjaxViewModel(
                data: new { TotalPayment = PaymentDetailSessionWrapper.TotalPayment },
                message: "Payment detail has been updated.");

            return(Json(ajaxViewModel));
        }