Esempio n. 1
0
        public override void Execute(TaskArgument <HttpApplication> context)
        {
            if (!this.IsValid(context.Type))
            {
                return;
            }
            IList <CreateContentTypeRequest> request = new List <CreateContentTypeRequest>();

            request.Add(new CreateContentTypeRequest("Product", "product", "Product desc"));
            request.Add(new CreateContentTypeRequest("Article", "article", "Article desc"));
            request.Add(new CreateContentTypeRequest("News", "news", "News desc"));
            IContentTypeService service = IoC.Container.Resolve <IContentTypeService>();

            service.CreateIfNotExist(request);
        }