[Solved] Obsolete MemberGroupService.GetById(int) ...
# help-with-umbraco
h
currently I am using MemberGroupService.GetById(Convert.ToInt32(memberGroupStr)) which now says it is obsolete and I should use the guid, however membergroupstr is the value of a MemberGroupPicker on the page whose value is returned as an int, so how to I find out what it's guid should be?
h
I was trying that but it requires an UmbracoObjectType, what would that be for a MemberGroup?
h
doh! just needed to use UmbracoObjectTypes.MemberGroup 🤣
s
Hehehe
3 Views