Blog.Web.Api.Controllers.UsersController.HideUserProperties C# (CSharp) Method

HideUserProperties() private static method

private static HideUserProperties ( User user ) : User
user User
return User
        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;
        }
    }