Ejemplo n.º 1
0
        /// <summary>
        /// Lists all recipient lists that specified email adress belongs to
        /// </summary>
        /// <returns>A RecipientLists collection of all recipient lists</returns>
        public static RecipientLists ListAllByEmail(string email)
        {
            RecipientLists recipientLists = new RecipientLists();
            RecipientData  dataUtil       = GetWorker();
            DataTable      recipTable     = dataUtil.RecipientListGetAllByEmail(email);

            foreach (DataRow row in recipTable.Rows)
            {
                RecipientList recipientList = new RecipientList(row);
                recipientLists.Add(recipientList);
            }
            return(recipientLists);
        }
Ejemplo n.º 2
0
        public static RecipientLists ListOneType(string listType)
        {
            RecipientLists recipientLists = new RecipientLists();
            RecipientData  dataUtil       = GetWorker();
            DataTable      recipTable     = dataUtil.RecipientListGetAll();

            foreach (DataRow row in recipTable.Rows)
            {
                RecipientList recipientList = new RecipientList(row);
                if (recipientList.ListType.ToString().Equals(listType))
                {
                    recipientLists.Add(recipientList);
                }
            }
            return(recipientLists);
        }