Exemple #1
0
        public async Task <IActionResult> Create([FromForm] CreateSongCommand command)
        {
            var id = await Mediator.Send(command);

            return(Ok(id));
        }
Exemple #2
0
 public ICommandResult Create([FromBody] CreateSongCommand command)
 {
     return(_handler.Handle(command));
 }