コード例 #1
0
        //public virtual Invoice Invoice { get; set; }

        public OrderModel()
        {
            _orderManagementService   = new OrderManagementService();
            _itemManagementService    = new ItemManagementService();
            _invoiceManagementService = new InvoiceManagementService();
            //Invoice = new Invoice();
            //Items = new List<Item>();
        }
コード例 #2
0
        public DashboardViewModel()
        {
            _orderManagementService   = new OrderManagementService();
            _itemManagementService    = new ItemManagementService();
            _invoiceManagementService = new InvoiceManagementService();

            OrderCount          = _orderManagementService.GetAllOrder();
            ItemCount           = _itemManagementService.GetAllItem();
            TotalInvoiceCreated = _invoiceManagementService.GetAllInvoice();
            TotalAmount         = _invoiceManagementService.TotalAmount();
        }
コード例 #3
0
 public OrderListModel()
 {
     _orderManagementService   = new OrderManagementService();
     _itemManagementService    = new ItemManagementService();
     _invoiceManagementService = new InvoiceManagementService();
 }
コード例 #4
0
 public InvoiceModel()
 {
     _invoiceManagementService = new InvoiceManagementService();
 }