public IActionResult Delete(Guid id) { if (!_whateverService.Exists(id)) { return(NotFound()); } _whateverService.Delete(id); return(Accepted()); }
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()); }