Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }