Пример #1
0
        public async Task <IHttpActionResult> Create([FromBody] SubmissionRequest request)
        {
            var ticket = request.Ticket;
            await _gamerRepository.CreateGamerAsync(ticket);

            return(Ok());
        }
Пример #2
0
        public async Task <IHttpActionResult> SubmitAgniKaiTicket([FromBody] SubmissionRequest request)
        {
            var token  = request.Token;
            var ticket = request.Ticket;

            await ValidateToken(token);

            var result = await _database.SubmitTicketAsync(token, ticket);

            return(Ok(result));
        }