Umbraco.Web.UmbracoContext.Current.PublishedContentRequest is null
Hi, there;
I am having a model that inhertis from:
public class MyModel : RenderModel
{
public MyModel ()
: base(Umbraco.Web.UmbracoContext.Current.PublishedContentRequest.PublishedContent)
{
...
}
}
In one of my MVC views I use ajax call to a server SurfaceController action method:
public ActionResult IHaveSite()
{
MyModel mode = new MyModel (); //I am having Umbraco.Web.UmbracoContext.Current.PublishedContentRequest is null error
//
//other logic
//
}
Umbraco.Web.UmbracoContext.Current.PublishedContentRequest is null
Hi, there; I am having a model that inhertis from:
My view has:
@inherits Umbraco.Web.Mvc.UmbracoViewPage
Can some help what I do wrong please?
Cheers Robert
is working on a reply...