public async Task <ActionResult> UpdateFolderPositions([FromBody] FolderShortModel model) => await Execute(async operation =>
 {
     var node = model.ToEntity();
     await noteFolderService.UpdateFolderPositions(operation, node);
 });
Esempio n. 2
0
 internal static FolderShortNode ToEntity(this FolderShortModel node) => new FolderShortNode
 {
     Id    = node.Id,
     Nodes = node.Nodes.Select(item => item.ToEntity())
 };