Exemple #1
0
        public async Task <IActionResult> MoveDown(int customEntityVersionPageBlockId)
        {
            var command = new MoveCustomEntityVersionPageBlockCommand();

            command.CustomEntityVersionPageBlockId = customEntityVersionPageBlockId;
            command.Direction = OrderedItemMoveDirection.Down;

            return(await _apiResponseHelper.RunCommandAsync(this, command));
        }
        public Task <JsonResult> MoveUp(int customEntityVersionPageBlockId)
        {
            var command = new MoveCustomEntityVersionPageBlockCommand();

            command.CustomEntityVersionPageBlockId = customEntityVersionPageBlockId;
            command.Direction = OrderedItemMoveDirection.Up;

            return(_apiResponseHelper.RunCommandAsync(command));
        }
 public Task MoveAsync(MoveCustomEntityVersionPageBlockCommand command)
 {
     return(ExtendableContentRepository.ExecuteCommandAsync(command));
 }