예제 #1
0
        // GET: Transaction
        public ActionResult Index()
        {
            var transactionDisplayVM = transactionManager
                                       .AllTransaction()
                                       .Select(t => new TransactionDisplayVM
            {
                Id           = t.Id,
                Tool         = t.Tool.Name,
                Cost         = t.Cost,
                Value        = t.Value,
                Date         = t.Date,
                PersonSeller = t.PersonSeller.Name,
                PersonBuyer  = t.PersonBuyer.Name
            });

            return(View(transactionDisplayVM));
        }