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>();
 }
Example #2
0
 public LandingPageController(ILandingPageService landingPageService)
 {
     this._landingPageService = landingPageService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LandingPageController"/> class.
 /// </summary>
 /// <param name="interfaceService">The interface service.</param>
 /// <param name="_unitOfWork">The unit of work.</param>
 public LandingPageController(ILandingPageService interfaceService, IUnitOfWork _unitOfWork)
     : base(_unitOfWork)
 {
     _service = interfaceService;
 }