public MessageService( IUnitOfWork unitOfWork, IGlobalSettingService goGlobalSettingService, IRazorViewRenderService razorViewRenderService, IEmailSender emailSender) { _globalSettingService = goGlobalSettingService; _razorViewRenderService = razorViewRenderService; _emailSender = emailSender; }
public MvcApplication(IGlobalSettingService globalSettingsService) { GlobalSettingService = globalSettingsService; }
public GlobalSettingController(IGlobalSettingService globalSettingService) { this.GlobalSettingService = globalSettingService; this.AddDisposableObject(globalSettingService); }
//Set up constructor injection public GlobalSettingController(IGlobalSettingService globalSettingService) { _globalSettingService = globalSettingService; }