public async Task <IHttpActionResult> GetCommunity(int id) { var community = await _communityService.GetCommunity(id).ConfigureAwait(false); if (community != null) { return(Ok(community)); } return(NotFound()); }
public async Task <IHttpActionResult> GetCommunityDetails(string name) { return(Ok(await _communityService.GetCommunity(name))); }