Example #1
0
        public IActionResult Delete(long id)
        {
            var cerveja = _cervejaRepository.Find(id);

            if (cerveja == null)
            {
                return(NotFound());
            }

            _cervejaRepository.Remove(id);
            return(new NoContentResult());
        }