public void Write(string content) { IUndoableCommand command = new AddContentCommand(this.document, content); this.undoStack.Push(command); this.redoStack.Clear(); command.Execute(); }
public async Task <ActionResult <MediaContentDto> > Post(AddContentCommand command) { var result = await _mediator.Send(command); if (result == null) { return(BadRequest()); } return(Ok()); }
protected internal ProjectViewModel() { AddContent = new AddContentCommand(this); }
public async Task <IActionResult> Post([FromBody] AddContentCommand command) { var result = await _mediator.Send(command); return(Ok(result)); }