Ejemplo n.º 1
0
        public bool Contains(string category, string key)
        {
            if (category == "ministries")
            {
                return(Ministries != null && Ministries.Contains(key));
            }

            if (category == "sectors")
            {
                return(Sectors != null && Sectors.Contains(key));
            }

            if (category == "tags")
            {
                return(Tags != null && Tags.Contains(key));
            }

            if (category == "services")
            {
                return(Services != null && Services.Contains(key));
            }

            if (category == "newsletters")
            {
                return(Newsletters != null && Newsletters.Contains(key));
            }

            if (category == "emergency")
            {
                return(Emergency != null && Emergency.Contains(key));
            }

            return(false);
        }