Resolving service dependency

This commit is contained in:
Elitsa Marinovska
2020-05-12 08:10:32 +02:00
parent 33768e3806
commit 3672e61104

View File

@@ -149,7 +149,7 @@ namespace Umbraco.Web.Website.ActionResults
if (context is null) throw new ArgumentNullException(nameof(context));
var httpContext = context.HttpContext;
var ioHelper = httpContext.RequestServices.GetRequiredService<IOHelper>();
var ioHelper = httpContext.RequestServices.GetRequiredService<IIOHelper>();
var destinationUrl = ioHelper.ResolveUrl(Url);
if (!(_queryStringValues is null) && _queryStringValues.Count > 0)