Exemplo n.º 1
0
    public string GetUserInfoList()
    {
        if (!header.VerifyCredentials(header.UserName, header.Password, header.Type))
        {
            return(string.Empty);
        }

        string url = System.Configuration.ConfigurationManager.AppSettings["WSAF.PhotoUrl"];

        User[] users = OrganizationPublicHelper.GetUserInfoList();

        foreach (User user in users)
        {
            if (!string.IsNullOrEmpty(url) && !string.IsNullOrEmpty(user.Photo))
            {
                user.Photo = url + user.Photo;
            }
        }
        return(XmlSerializer.Serialize(users));
    }