public async Task <IHttpActionResult> Publish(int pageId)
        {
            var command = new PublishPageCommand()
            {
                PageId = pageId
            };

            return(await _apiResponseHelper.RunCommandAsync(this, command));
        }
        public Task <JsonResult> Publish(int pageId)
        {
            var command = new PublishPageCommand()
            {
                PageId = pageId
            };

            return(_apiResponseHelper.RunCommandAsync(command));
        }
 public Task PublishAsync(PublishPageCommand command)
 {
     return(ExtendableContentRepository.ExecuteCommandAsync(command));
 }