public IActionResult UpdateCatalogParentCatalog(CatalogDto catalogWithFieldVerifying) { _directorySystemFacade.UpdateParentCatalog(new Catalog { Id = catalogWithFieldVerifying.Id, Name = catalogWithFieldVerifying.Name, OrderInParentCatalog = catalogWithFieldVerifying.OrderInParentCatalog, ParentCatalogId = catalogWithFieldVerifying.ParentCatalogId }); return(RedirectToAction("Index", "Catalog", new { id = catalogWithFieldVerifying.ParentCatalogId })); }
public IActionResult UpdateTextBlockParentCatalog(TextBlockDto textBlockWithFieldVerifying) { _directorySystemFacade.UpdateParentCatalog(new TextBlock { Id = textBlockWithFieldVerifying.Id, Name = textBlockWithFieldVerifying.Name, OrderInParentCatalog = textBlockWithFieldVerifying.OrderInParentCatalog, ParentCatalogId = textBlockWithFieldVerifying.ParentCatalogId, Text = textBlockWithFieldVerifying.Text }); return(RedirectToAction("Index", "Catalog", new { id = textBlockWithFieldVerifying.ParentCatalogId })); }