Beispiel #1
0
        public IActionResult OnGet()
        {
            Purchase = new Core.Purchase();
            var customers = customerData.GetCustomers().ToList().Select(p => new { Id = p.Id, Display = $"{p.FirstName} {p.LastName}" });

            Customers = new SelectList(customers, "Id", "Display");
            return(Page());
        }
Beispiel #2
0
 public double GetTotalPurchase(Core.Purchase purchase)
 {
     return(purchaseBL.TotalPurchase(purchase));
 }