public async Task <IActionResult> Excluir(long[] eventosId, [FromServices] IComandosEvento comandosEvento) { await comandosEvento.Excluir(eventosId); return(Ok()); }
public async Task <IActionResult> Alterar(long id, [FromBody] EventoDto eventoDto, [FromServices] IComandosEvento comandosEvento) { return(Ok(await comandosEvento.Alterar(id, eventoDto))); }
public async Task <IActionResult> Criar([FromServices] IComandosEvento comandosEvento, [FromBody] EventoDto eventoDto) { return(Ok(await comandosEvento.Criar(eventoDto))); }
public IActionResult Excluir(long[] eventosId, [FromServices] IComandosEvento comandosEvento) { comandosEvento.Excluir(eventosId); return(Ok()); }