public async Task <ActionResult> History() { var userId = User.Identity.GetUserId <int>(); var receipts = await PaymentReader.GetReceipts(userId); return(View(new PaymentHistoryModel { Receipts = receipts })); }
public async Task <ActionResult> GetPayments(DataTablesParam model) { return(DataTable(await PaymentReader.GetReceipts(model))); }