示例#1
0
        public ActionResult ListPaidBills()
        {
            List <AssignedBillViewModel> model = new List <AssignedBillViewModel>();
            var paymentData = PaymentProcessor.GetPaidBills();

            foreach (var p in paymentData)
            {
                model.Add(new AssignedBillViewModel
                {
                    BillName  = p.BillName,
                    FirstName = p.FirstName,
                    LastName  = p.LastName,
                    AmountDue = p.AmountDue,
                    DueDate   = p.DueDate
                });
            }

            return(View(model));
        }