I asked this question on our Umbraco forums , but I also wanted to increase my chances of getting a solution by posting the same question here.
The problem is that inside the Razor macro, I cannot get the current Member that is accessing the site. I tried the following methods:
- Call Member.GetCurrentMember (), but this returns NULL.
- Call Memberhip.GetUser (), but this returns NULL
- Call UmbracoEnsuredPage.CurrentUser returned NULL;
Is there any other way to get the current Member view, as the above methods do not work in my case?
source share