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