예제 #1
0
        public async Task <IHttpActionResult> GetCommunity(int id)
        {
            var community = await _communityService.GetCommunity(id).ConfigureAwait(false);

            if (community != null)
            {
                return(Ok(community));
            }
            return(NotFound());
        }
예제 #2
0
 public async Task <IHttpActionResult> GetCommunityDetails(string name)
 {
     return(Ok(await _communityService.GetCommunity(name)));
 }