From 9dd8bee660e7b134cf44c85232a24392d7e52eb1 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sat, 28 Feb 2015 00:51:34 +0100 Subject: [PATCH] Removed unnecessary ITransactionManager constructor argument. --- .../Orchard.Email/Controllers/EmailAdminController.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Email/Controllers/EmailAdminController.cs b/src/Orchard.Web/Modules/Orchard.Email/Controllers/EmailAdminController.cs index 9d4011924..6aca6ba30 100644 --- a/src/Orchard.Web/Modules/Orchard.Email/Controllers/EmailAdminController.cs +++ b/src/Orchard.Web/Modules/Orchard.Email/Controllers/EmailAdminController.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Web.Mvc; using Orchard.ContentManagement; -using Orchard.Data; using Orchard.Email.Models; using Orchard.Email.Services; using Orchard.Localization; @@ -14,12 +13,10 @@ namespace Orchard.Email.Controllers { public class EmailAdminController : Controller { private readonly ISmtpChannel _smtpChannel; private readonly IOrchardServices _orchardServices; - private readonly ITransactionManager _transactionManager; - public EmailAdminController(ISmtpChannel smtpChannel, IOrchardServices orchardServices, ITransactionManager transactionManager) { + public EmailAdminController(ISmtpChannel smtpChannel, IOrchardServices orchardServices) { _smtpChannel = smtpChannel; _orchardServices = orchardServices; - _transactionManager = transactionManager; T = NullLocalizer.Instance; } @@ -77,7 +74,7 @@ namespace Orchard.Email.Controllers { } // Undo the temporarily changed smtp settings. - _transactionManager.Cancel(); + _orchardServices.TransactionManager.Cancel(); } }