コード例 #1
0
        public async Task <IHttpActionResult> Publish(int pageId)
        {
            var command = new PublishPageCommand()
            {
                PageId = pageId
            };

            return(await _apiResponseHelper.RunCommandAsync(this, command));
        }
コード例 #2
0
        public Task <JsonResult> Publish(int pageId)
        {
            var command = new PublishPageCommand()
            {
                PageId = pageId
            };

            return(_apiResponseHelper.RunCommandAsync(command));
        }
コード例 #3
0
 public Task PublishAsync(PublishPageCommand command)
 {
     return(ExtendableContentRepository.ExecuteCommandAsync(command));
 }