public ProductEditorCommandController(
     // base dependencies
     IContentDefinitionService contentDefinitionService,
     IProductService productService,
     IReadOnlyArticleService articleService,
     EditorSchemaService editorSchemaService,
     EditorDataService editorDataService,
     EditorPartialContentService editorPartialContentService,
     EditorLocaleService editorLocaleService,
     // self dependencies
     IFieldService fieldService,
     IProductUpdateService productUpdateService,
     CloneBatchAction cloneBatchAction,
     DeleteAction deleteAction,
     PublishAction publishAction)
     : base(contentDefinitionService,
         productService,
         articleService,
         editorSchemaService,
         editorDataService,
         editorPartialContentService,
         editorLocaleService)
 {
     _fieldService = fieldService;
     _productUpdateService = productUpdateService;
     _cloneBatchAction = cloneBatchAction;
     _deleteAction = deleteAction;
     _publishAction = publishAction;
 }
 public ProductEditorQueryController(
     // base dependencies
     IContentDefinitionService contentDefinitionService,
     IProductService productService,
     IReadOnlyArticleService articleService,
     EditorSchemaService editorSchemaService,
     EditorDataService editorDataService,
     EditorPartialContentService editorPartialContentService,
     EditorLocaleService editorLocaleService,
     // self dependencies
     PublicationStatusService publicationStatusService,
     EditorPreloadingService editorPreloadingService,
     EditorCustomActionService editorCustomActionService)
     : base(contentDefinitionService,
            productService,
            articleService,
            editorSchemaService,
            editorDataService,
            editorPartialContentService,
            editorLocaleService)
 {
     _publicationStatusService  = publicationStatusService;
     _editorPreloadingService   = editorPreloadingService;
     _editorCustomActionService = editorCustomActionService;
 }
        // GET: Editor
        public ActionResult Inicio()
        {
            EditorDataService dataService = new EditorDataService();
            var model = dataService.ObtenerTexto("Home/Inicio", this.HttpContext) ?? new EditorEnunciadoModel()
            {
                Nombre = "Home/Inicio", UltimaModificacion = DateTime.Today
            };

            return(View(model));
        }
        public ActionResult Inicio(EditorEnunciadoModel modelo)
        {
            try
            {
                EditorDataService dataService = new EditorDataService();
                dataService.CrearOEditar(modelo, this.HttpContext);
            }
            catch (Exception ex)
            {
                this.ModelState.AddModelError("", ex);
                throw;
            }

            return(View());
        }
 public ProductEditorController(
     IContentDefinitionService contentDefinitionService,
     IProductService productService,
     IReadOnlyArticleService articleService,
     EditorSchemaService editorSchemaService,
     EditorDataService editorDataService,
     EditorPartialContentService editorPartialContentService,
     EditorLocaleService editorLocaleService)
 {
     _contentDefinitionService    = contentDefinitionService;
     _productService              = productService;
     _articleService              = articleService;
     _editorSchemaService         = editorSchemaService;
     _editorDataService           = editorDataService;
     _editorPartialContentService = editorPartialContentService;
     _editorLocaleService         = editorLocaleService;
 }