public IActionResult Delete(string id) { Agenda agenda = _agendaService.Get(id); if (agenda == null) { return(NotFound()); } _agendaService.Remove(id); return(NoContent()); }