public IActionResult Delete(Guid id)
        {
            if (!_whateverService.Exists(id))
            {
                return(NotFound());
            }

            _whateverService.Delete(id);
            return(Accepted());
        }
Beispiel #2
0
        public IActionResult Delete(Guid id)
        {
            if (Guid.Empty == id)
            {
                return(BadRequest("Identificador inválido."));
            }
            if (_whateverService.Exists(id) == false)
            {
                return(NotFound());
            }

            _whateverService.Delete(id);
            return(Accepted());
        }