public LandingPageService(IPortfolioService PortfolioService, IMediaDashboardService MediaDashboardService, IMyHomeService MyHomeService, IHardwareMonitorService HardwareService) { portfolioService = PortfolioService; mediaDashboardService = MediaDashboardService; myHomeService = MyHomeService; hardwareService = HardwareService; }
public BaseController() { landingPageService = DependencyResolver.Current.GetService <ILandingPageService>(); portfolioService = DependencyResolver.Current.GetService <IPortfolioService>(); mediaDashboardService = DependencyResolver.Current.GetService <IMediaDashboardService>(); myHomeService = DependencyResolver.Current.GetService <IMyHomeService>(); hardwareService = DependencyResolver.Current.GetService <IHardwareMonitorService>(); }