예제 #1
0
        public async Task <IActionResult> Create(string appId, [FromBody] ContentCollection contentCollection)
        {
            var command = new SaveContentCollectionCommand(appId, contentCollection);
            var result  = await _dispatcher.ExecuteCommand(command);

            return(this.HandleCreateCommandResult(result, contentCollection.Id, contentCollection));
        }
 public SaveContentCollectionCommand(string appId, ContentCollection contentCollection)
 {
     this.ContentCollection = contentCollection;
     this.AppId             = appId;
 }