示例#1
0
        public Joueur GetParticipant([FromQuery] int Idtournoi, [FromQuery] int IdPlayer)
        {
            ViewParticipant j = DB_CURD.GetParticipant(IdPlayer, Idtournoi);

            Joueur retour = new()
            {
                Tournament   = DB_CURD.GetTournament(Idtournoi),
                User         = DB_CURD.GetUser(j.IdUser),
                IGPseudo     = j.IGPseudo,
                RegisterDate = j.RegisterDate,
                CheckIn      = j.CheckIn,
                Drop         = j.Drop,
                Decks        = DB_CURD.GetDecksOfParticipant(j.IdTournament, j.IdUser)
            };

            return(retour);
        }