I am wondering what the best practice is currently for fetching the property value of an Umbraco Member. I already have the MemberIdentityUser by using GetCurrentMemberAsync() and in the backend I use the IMemberService to fetch an IMember User based on the result of that but according to the common pitfalls it is not recommended to inject Services in razor pages.
I am just not sure what the best way to go about this is. Am I being too cautious by not just using IMemberService? What is the best practice for this?
Get Property of a Member
Hi,
I am wondering what the best practice is currently for fetching the property value of an Umbraco Member. I already have the MemberIdentityUser by using GetCurrentMemberAsync() and in the backend I use the IMemberService to fetch an IMember User based on the result of that but according to the common pitfalls it is not recommended to inject Services in razor pages.
I am just not sure what the best way to go about this is. Am I being too cautious by not just using IMemberService? What is the best practice for this?
is working on a reply...