Simplifies all creation of UrlHelper, creates GetUmbracoApiServiceBaseUrl extensions for WebApi
This commit is contained in:
@@ -71,7 +71,7 @@ namespace Umbraco.Web.WebServices
|
||||
/// </remarks>
|
||||
public UrlHelper Url
|
||||
{
|
||||
get { return _url ?? (_url = new UrlHelper(new RequestContext(new HttpContextWrapper(HttpContext.Current), new RouteData()))); }
|
||||
get { return _url ?? (_url = new UrlHelper(HttpContext.Current.Request.RequestContext)); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace Umbraco.Web.WebServices
|
||||
/// </remarks>
|
||||
public UrlHelper Url
|
||||
{
|
||||
get { return _url ?? (_url = new UrlHelper(new RequestContext(new HttpContextWrapper(Context), new RouteData()))); }
|
||||
get { return _url ?? (_url = new UrlHelper(Context.Request.RequestContext)); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user