public bool CheckValue(string username, string APPId) { bool value = false; bool userrolecheck = false; var result = _helper.GetValue("UserAPIkey"); List <AspNetUserTokens> user = null; if (username != "") { if (result == null) { AddCacheValue(username, APPId); } var resultkey = _helper.GetValue("UserAPIkey"); user = checkapikey(APPId, username); if (user.Count > 0 && user != null) { value = true; } else { _helper.Delete("UserAPIkey"); AddCacheValue(username, APPId); user = checkapikey(APPId, username); if (user.Count > 0 && user != null) { value = true; } } } return(value); }
/// <summary> /// 根据 Model 内主键删除数据 /// </summary> /// <param name="model"></param> public void Delete(IModel model) { mDBHelper.Delete(model); }