public static int GetMaxTopicTypesId() { DataTable topicTypes = TopicTypes.GetTopicTypes(); if (topicTypes != null) { return(TypeConverter.ObjectToInt(topicTypes.Compute("Max(id)", ""))); } return(0); }
public static bool IsExistTopicType(string topicTypeName, int typeid) { foreach (DataRow dataRow in TopicTypes.GetTopicTypes().Rows) { if (dataRow["name"].ToString() == topicTypeName && dataRow["id"].ToString() != typeid.ToString()) { return(true); } } return(false); }
public static DataTable GetTopicTypes() { return(TopicTypes.GetTopicTypes("")); }