public static List<DistributionList> GetDistributionLists(User user)
        {
            // TODO: Fix this

            // Right now the distribution lists are hard coded. They should be pulled from the database.
            // There needs to be a table called GroupDistributionLists that can be used to determine
            // which distribution lists each group has access to.

            Group admin = new Group(1);
            Group prescribers = new Group(3);
            Group providers = new Group(4);
            Group dev = new Group(6);

            List<DistributionList> ret = new List<DistributionList>();

            if(user.IsInGroup(providers))
                ret.Add(new DistributionList(1));

            if(user.IsInGroup(admin) || user.IsInGroup(dev))
            {
                ret.Add(new DistributionList(2));
                ret.Add(new DistributionList(3));
            }

            return ret;
        }
        public static List<DistributionList> GetDistributionLists(User user)
        {
            // TODO: Fix this

            // Right now the distribution lists are hard coded. They should be pulled from the database.
            // There needs to be a table called GroupDistributionLists that can be used to determine
            // which distribution lists each group has access to.

            User u = Framework.Security.Manager.GetUser();
            UserProfile profile = UserProfile.FindByUser(u);

            Group admin = new Group(1);
            Group prescribers = new Group(3);
            Group providers = new Group(4);
            Group dev = new Group(6);

            List<DistributionList> ret = new List<DistributionList>();

            // first setup the system default lists
            if(user.IsInGroup(providers))
            {
                ret.Add(new DistributionList(1));
            }

            if(user.IsInGroup(admin) || user.IsInGroup(dev))
            {
                ret.Add(new DistributionList(2));
                ret.Add(new DistributionList(3));
            }

            // now add any user created distribution lists
            ret.AddRange(DistributionList.FindByUserProfile(profile));
            return ret;
        }