예제 #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;
 }
예제 #2
0
 public IssuesController(IssueInterface issueRepo)
 {
     this.issueRepo = issueRepo;
     //issueRepo = new IssuesRepo();
     //IEnumerable someIssues = issueRepo.GetAll();
     newIssues = new List <IssueDTO>();
     foreach (Issue i in issueRepo.GetAll())
     {
         IssueDTO newIssue = new IssueDTO(i);
         newIssues.Add(newIssue);
     }
 }