public static void Add(string userID, MessageGroupTypes groupType, string title) { MessageGroup item = new MessageGroup(userID, groupType, -1, title, 0); Data.MessageGroup objData = new Data.MessageGroup(); objData.Save(item); }
public static void Delete(string userID, MessageGroupTypes groupType, int groupID) { if (groupID == 0) { return; } Data.MessageGroup objData = new Data.MessageGroup(); objData.Delete(userID, groupType, groupID); }
public void Update(string userID, MessageGroupTypes groupType) { if (intGroupID == 0) { return; } Data.MessageGroup objData = new Data.MessageGroup(); objData.Save(this); }
public static bool Exist(string userID, MessageGroupTypes groupType, string title) { if (title.ToLower().Trim() == groupType.ToString().ToLower()) { return(true); } Data.MessageGroup objData = new Data.MessageGroup(); return(objData.Exist(userID, groupType, title)); }
public static List <MessageGroup> Load(string userID, MessageGroupTypes groupType) { List <MessageGroup> list = new List <MessageGroup>(); list.Add(new MessageGroup(userID, groupType, 0, groupType.ToString(), 0)); Data.MessageGroup objData = new Data.MessageGroup(); objData.Load(list, userID, groupType, false); return(list); }
public static List <MessageGroup> LoadWithCount(string userID, MessageGroupTypes groupType) { List <MessageGroup> list = new List <MessageGroup>(); list.Add(new MessageGroup(userID, groupType, 0, "Default", 0)); Data.MessageGroup objData = new Data.MessageGroup(); objData.Load(list, userID, groupType, true); return(list); }