Umbarco controller/webapi without context
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | public class ClientAppCacheController : UmbracoController { public ClientAppCacheController() : base ( UmbracoContext.EnsureContext( new HttpContextWrapper(System.Web.HttpContext.Current) , ApplicationContext.Current , new global::Umbraco.Web.Security.WebSecurity( new HttpContextWrapper(System.Web.HttpContext.Current) , ApplicationContext.Current) , true )) { } } |