示例#1
0
        public ActionResult EventPayments(int?id)
        {
            List <Events> Payments = new List <Events>();

            if (id == 0)
            {
                Payments = UserPaymentsService.GetUserPayments();
            }
            else
            {
                Payments = UserPaymentsService.GetUserPaymentsonEventId(id.Value);
            }
            return(View(Payments));
        }
示例#2
0
        public JsonResult GetAllPayments()
        {
            var data = UserPaymentsService.GetUserPayments();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }