Beispiel #1
0
        public string Del(Admin model)
        {
            var rst = new ReturnResult <bool>();
            var bll = new AdminBll();

            rst = bll.Delete(model);

            return(JsonHelper.Instance.Serialize(rst));
        }
Beispiel #2
0
        public string Logout(string token)
        {
            var rst = new ReturnResult <bool>();
            var bll = new AdminBll();

            rst = bll.Delete(new Admin()
            {
                Token = token
            });

            return(JsonHelper.Instance.Serialize(rst));
        }