コード例 #1
0
ファイル: OrderService.cs プロジェクト: SV-ZeroOne/TwoFace
 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;
 }
コード例 #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);
            }
        }