Beispiel #1
0
        public string Login(string SysCode, int Platform, string UserCode, string PassWord)
        {
            var res = new UserSessionServices();
            var ret = res.UserLogin(SysCode, UserCode, PassWord, "", "", DateTime.Now);

            return(JsonTool.EntityToJson <CommonResult <UserContext> >(ret));
        }
Beispiel #2
0
        public string LoginOut(string SessionId)
        {
            var res = new UserSessionServices();
            var ret = res.LoginOut(SessionId);

            return(JsonTool.EntityToJson <CommonResult <bool> >(new CommonResult <bool>()
            {
                Data = ret
            }));
        }