Example #1
0
        public ActionResult RevokeTicket([FromRoute] int id)
        {
            var ticket    = _ticketsService.GetTicket(id);
            var userEmail = _userManager.GetUserId(User);

            if (_ticketsService.RevokeTicket(ticket, userEmail))
            {
                return(Ok());
            }

            return(Forbid());
        }