public IActionResult Delete(string id) { var ticket = _ticketsService.Get(id); if (ticket == null) { return(NotFound()); } _ticketsService.Remove(ticket.Id); return(NoContent()); }