private static User HideUserProperties(User user)
{
if (user.Picture != null)
{
user.Picture.FileName = null;
user.Picture.MediaPath = null;
user.Picture.ThumbnailPath = null;
}
if (user.Background != null)
{
user.Background.FileName = null;
user.Background.MediaPath = null;
user.Background.ThumbnailPath = null;
}
return user;
}
}