コード例 #1
0
        public IActionResult Delete(string id)
        {
            var ticket = _ticketsService.Get(id);

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

            _ticketsService.Remove(ticket.Id);

            return(NoContent());
        }