private int GetCommunityMemberCount(int communityId) { try { var count = _communityRepository.GetMemberCountByCommunity(communityId); return count; } catch { return 0; } } }