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