public BookingsStagesAnalysis(ICompanyDBRepository _compDbRepo, IThirdpartyDBrepository _tpRepo, IPerformance _perfRepo) { compDbRepo = _compDbRepo; tpRepo = _tpRepo; perfRepo = _perfRepo; // used by the select in the view compSpec.DptsList["All"] = compSpec.DptsList.SelectMany(kvp => kvp.Value).ToList(); compSpec.bookingTypes["All"] = compSpec.bookingTypes.SelectMany(kvp => kvp.Value).ToList(); }
public Performance(ICompanyDBRepository _compDbRepo, IThirdpartyDBrepository _tpRepo) { CompSpec = new CompanySpecifics(); compDbRepo = _compDbRepo; tpRepo = _tpRepo; }
public PerformanceOverviewController(ICompanyDBRepository _compDbRepo, IThirdpartyDBrepository _tpRepo) { perfRepo = perfRepo ?? new Performance(_compDbRepo, _tpRepo); }