Ejemplo 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;
 }
Ejemplo n.º 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);
     }
 }