public async Task ExcluirCerveja(ExcluirCervejaDTO.Envio dto)
        {
            var cerveja = UnitOfWork.CervejaRepository.GetById(dto.Id);

            var command = ExcluirCervejaCommand.Factory(cerveja);
            await Bus.SendCommand(command);
        }
        public async Task <IActionResult> Excluir([FromBody] ExcluirCervejaDTO.Envio dto)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(dto));
            }

            await _cervejaAppService.ExcluirCerveja(dto);

            return(Response());
        }