Esempio n. 1
0
        public Round GetRoundOfTournament([FromQuery] int IdTournoi, [FromQuery] int RoundNumber)
        {
            var r = DB_CURD.GetRoundOf(IdTournoi, RoundNumber);

            Round retour = new()
            {
                IdTournament = r.IdTournament,
                Name         = r.Name,
                RoundNumber  = r.RoundNumber,
                StartRound   = r.StartRound,
                Matches      = DB_CURD.GetMatchesOfTheRound(r.IdTournament, r.RoundNumber)
            };

            return(retour);
        }

        #endregion


        //// POST api/<ViewController>
        //[HttpPost]
        //public void Post([FromBody] string value)
        //{
        //}

        //// PUT api/<ViewController>/5
        //[HttpPut("{id}")]
        //public void Put(int id, [FromBody] string value)
        //{
        //}

        //// DELETE api/<ViewController>/5
        //[HttpDelete("{id}")]
        //public void Delete(int id)
        //{
        //}
    }