public async Task <ActionResult> Put(Guid id, DreamRequest dto) { await _mediator.Send(new UpdateCommand(id, dto)); return(NoContent()); }
public async Task <ActionResult> Post(DreamRequest dto) { await _mediator.Send(new CreateCommand(dto)); return(NoContent()); }