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; }
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); } }