/// <summary> /// 检查是否存在标签 /// </summary> /// <param name="ids"></param> /// <returns></returns> public bool ExistsTag(Model.MemberTag tag) { var modelTagName = Get <Model.MemberTag>(string.Format("TagName='{0}' AND TagType='{1}' AND WebsiteOwner='{2}'", tag.TagName, tag.TagType, tag.WebsiteOwner)); if (modelTagName != null && modelTagName.AutoId == tag.AutoId) { return(false); } return(modelTagName != null); }
/// <summary> /// 添加标签 /// </summary> /// <param name="ids"></param> /// <returns></returns> public bool AddTag(Model.MemberTag Tag) { return(Add(Tag)); }