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)); }
public JsonResult GetAllPayments() { var data = UserPaymentsService.GetUserPayments(); return(Json(data, JsonRequestBehavior.AllowGet)); }