public IActionResult Editar([FromBody] Material material)
        {
            if (material == null)
            {
                return(BadRequest());
            }

            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            _repository.Alter(material);

            return(Created("Alterado com sucesso", material));
        }