Exemple #1
0
        public async Task <IEnumerable <Monster> > GetAllMonstersAsync([FromQuery] bool withImages = false)
        {
            _logger.LogDebug("Getting all monsters from MonsterService...");
            var monsters = await _MonsterService.GetMonstersAsync(withImages);

            _logger.LogDebug($"Returning {monsters.Count()} monsters (withImages={withImages})...");
            LogResponseSize(JsonConvert.SerializeObject(monsters));

            return(monsters);
        }