public async Task <IActionResult> Cadastrar([FromBody] CreateProdutoCommand command) { var(success, result) = await _service.Create(command); if (!success) { return(BadRequest(new FailViewModel(result as string))); } return(Ok(result as ProdutoViewModel)); }