Esempio n. 1
0
 public OrderService(IssueInterface issuerepo, OrderInterface orderrepo, SupplierInterface supplierRepo, SupplierQuoteInterface supplierQuoteRepo, SupplierPaymentInterface suppPay)
 {
     this.issueRepo           = issuerepo;
     this.orderRepo           = orderrepo;
     this.supplierRepo        = supplierRepo;
     this.supplierQuoteRepo   = supplierQuoteRepo;
     this.supplierPaymentRepo = suppPay;
 }
Esempio n. 2
0
        public SupplierQuoteController(SupplierQuoteInterface quoteRepo)
        {
            this.quoteRepo = quoteRepo;

            newQuotes = new List <SupplierQuoteDTO>();
            foreach (SupplierQuote i in quoteRepo.GetAll())
            {
                SupplierQuoteDTO newQuote = new SupplierQuoteDTO(i);
                newQuotes.Add(newQuote);
            }
        }