public string Del(Admin model) { var rst = new ReturnResult <bool>(); var bll = new AdminBll(); rst = bll.Delete(model); return(JsonHelper.Instance.Serialize(rst)); }
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)); }