示例#1
0
        public async Task <ActionResult> History()
        {
            var userId   = User.Identity.GetUserId <int>();
            var receipts = await PaymentReader.GetReceipts(userId);

            return(View(new PaymentHistoryModel
            {
                Receipts = receipts
            }));
        }
示例#2
0
 public async Task <ActionResult> GetPayments(DataTablesParam model)
 {
     return(DataTable(await PaymentReader.GetReceipts(model)));
 }