Exemple #1
0
        public string GetUserLoves( )
        {
            StringBuilder    msg   = new StringBuilder( );
            IList <UserInfo> users = accountFacade.GetUserInfoOrderByLoves( );

            if (users == null)
            {
                return("{}");
            }
            msg.Append("[");
            foreach (UserInfo user in users)
            {
                msg.Append("{userName:'******',loves:'" + user.LoveLiness + "'},");
            }
            msg.Remove(msg.Length - 1, 1);
            msg.Append("]");
            return(msg.ToString( ));
        }