示例#1
0
        public async Task <IActionResult> DeleteAsync(int ticketId)
        {
            if (await _repo.TicketExistsAsync(ticketId))
            {
                await _repo.DeleteTicketAsync(ticketId);

                return(NoContent());
            }
            return(NotFound("Ticket not found"));
        }