コード例 #1
0
 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 }));
 }
コード例 #2
0
 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 }));
 }