public static EmailList Load(Int32 emailListId, bool useCache)
        {
            if (emailListId == 0)
            {
                return(null);
            }
            EmailList emailList = null;
            string    key       = "EmailList_" + emailListId.ToString();

            if (useCache)
            {
                emailList = ContextCache.GetObject(key) as EmailList;
                if (emailList != null)
                {
                    return(emailList);
                }
            }
            emailList = new EmailList();
            if (emailList.Load(emailListId))
            {
                if (useCache)
                {
                    ContextCache.SetObject(key, emailList);
                }
                return(emailList);
            }
            return(null);
        }
        public static bool Delete(Int32 emailListId)
        {
            EmailList emailList = new EmailList();

            if (emailList.Load(emailListId))
            {
                return(emailList.Delete());
            }
            return(false);
        }