示例#1
0
 public async Task <IEnumerable <PlayerWithPointsDto> > Get([FromQuery] bool onlyActive = true, [FromQuery] int numberOfResults = 0, [FromQuery] DateTime?From = null, [FromQuery] DateTime?To = null)
 {
     if (numberOfResults == 0)
     {
         return(await pointsService.GetAllPlayersPoints(onlyActive, From, To));
     }
     else
     {
         return(await pointsService.GetAllPlayersPoints(onlyActive, numberOfResults));
     }
 }