Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, i've just updated a project from 7.1.8 to 7.5.4 and i need to update all my usages of UserService. The function below is now obsolete:
public static IContent ToIContent(this MyObject item) { ... var userService = new UserService(new RepositoryFactory()); IUser author = userService.GetByEmail(item.AuthorEmail); ... }
Is there another way to access user information? i'm trying to return a user based on their email address.
i couldn't find any docos on the Services?
thanks!
fixed. services can be accessed via:
var userService = ApplicationContext.Current.Services.UserService;
thanks! hope it helps someone else
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Accessing UserService in 7.3+
Hi, i've just updated a project from 7.1.8 to 7.5.4 and i need to update all my usages of UserService. The function below is now obsolete:
Is there another way to access user information? i'm trying to return a user based on their email address.
i couldn't find any docos on the Services?
thanks!
fixed. services can be accessed via:
thanks! hope it helps someone else
is working on a reply...