コード例 #1
0
        public async Task <ActionResult <IReadOnlyCollection <CommunityFeatured> > > GetFeatured()
        {
            try
            {
                var result = await _communityService.GetFeatured();

                return(Ok(result));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, ex.Message);
            }

            return(BadRequest("Unable to return Communities"));
        }