Пример #1
0
        public ActionResult <List <User> > DeleteUserTicket([FromRoute] string id, [FromRoute] int ticketId)
        {
            var user    = _userService.GetUser(id);
            var tickets = _ticketService.GetUserTickets(user.Email);
            var ticket  = _ticketService.GetUserTicket(ticketId, tickets);

            _ticketService.DeleteTicket(ticket.Id);

            return(Ok(ticket));
        }