public IActionResult UpdateCatalog(CatalogDto catalogWithFieldVerifying)
 {
     _directorySystemFacade.UpdateValue(new Catalog
     {
         Id   = catalogWithFieldVerifying.Id,
         Name = catalogWithFieldVerifying.Name,
         OrderInParentCatalog = catalogWithFieldVerifying.OrderInParentCatalog,
         ParentCatalogId      = catalogWithFieldVerifying.ParentCatalogId
     });
     return(RedirectToAction("Index", new { id = catalogWithFieldVerifying.ParentCatalogId }));
 }
 public IActionResult UpdateTextBlock(TextBlockDto textBlockWithFieldVerifying)
 {
     _directorySystemFacade.UpdateValue(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 }));
 }