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