Changes how IProfile works which is now just exposed by the IUser instead of implemented, this cleans up the Id situation.

This commit is contained in:
Shannon
2014-01-23 15:31:49 +11:00
parent 668265f1ac
commit 0be8039c8f
3 changed files with 45 additions and 25 deletions

View File

@@ -343,13 +343,13 @@ namespace Umbraco.Core.Services
public IProfile GetProfileById(int id)
{
var user = GetUserById(id);
return user;
return user.ProfileData;
}
public IProfile GetProfileByUserName(string login)
{
var user = GetByUsername(login);
return user;
return user.ProfileData;
}
public IUser GetUserById(int id)