Ejemplo n.º 1
0
        public ActionResult Details(int id)
        {
            PaymentModel model = new PaymentModel();
            //Todo should be mapping this to datalibrary model
            var data = PaymentProcessor.GetPaymentById(id);

            //todo change this to display payment details via View model
            model = new PaymentModel
            {
                Id         = data.Id,
                RoommateId = data.RoommateId,
                BillId     = data.BillId,
                AmountPaid = data.AmountPaid,
                DatePaid   = data.DatePaid
            };
            return(View(model));
        }