Ejemplo n.º 1
0
    public string FindUserNameByCode(string userCode)
    {
        WsSystem ws = new WsSystem();
        SysUser  su = ws.FindUserByCode(userCode);

        //Dictionary<String, Object> map = new Dictionary<String, Object>();

        //    map.Add("name", su.UserName);

        //Context.Response.Write(JsonConvert.SerializeObject(map));
        if (su != null)
        {
            return(su.UserName);
        }
        else
        {
            return("");
        }
    }