示例#1
0
        internal List <TextContent> GetAllByType(TextContentType type)
        {
            List <TextContent> textContentsByType = new List <TextContent>();

            foreach (var textContent in GetAll())
            {
                if (textContent.Type == type)
                {
                    textContentsByType.Add(textContent);
                }
            }
            return(textContentsByType);
        }
 public List <TextContent> GetAllByType(TextContentType type)
 {
     return(_textContentService.GetAllByType(type));
 }
示例#3
0
 public TextContentTypeManager(TextContentType model)
 {
     this.model = model;
 }