Esempio n. 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
            }));
        }
Esempio n. 2
0
 public async Task <ActionResult> GetPayments(DataTablesParam model)
 {
     return(DataTable(await PaymentReader.GetReceipts(model)));
 }