Пример #1
0
        public async Task <IActionResult> Excluir(long[] eventosId, [FromServices] IComandosEvento comandosEvento)
        {
            await comandosEvento.Excluir(eventosId);

            return(Ok());
        }
Пример #2
0
 public async Task <IActionResult> Alterar(long id, [FromBody] EventoDto eventoDto, [FromServices] IComandosEvento comandosEvento)
 {
     return(Ok(await comandosEvento.Alterar(id, eventoDto)));
 }
Пример #3
0
 public async Task <IActionResult> Criar([FromServices] IComandosEvento comandosEvento, [FromBody] EventoDto eventoDto)
 {
     return(Ok(await comandosEvento.Criar(eventoDto)));
 }
Пример #4
0
 public IActionResult Excluir(long[] eventosId, [FromServices] IComandosEvento comandosEvento)
 {
     comandosEvento.Excluir(eventosId);
     return(Ok());
 }