Blog.Logic.Core.CommunityLogic.IsCommunityNameInUse C# (CSharp) Method

IsCommunityNameInUse() private method

private IsCommunityNameInUse ( string name ) : bool
name string
return bool
        private bool IsCommunityNameInUse(string name)
        {
            var dbCommunity = _communityRepository.Find(a => a.Name == name, null, null).FirstOrDefault();
            return dbCommunity != null;
        }

Same methods

CommunityLogic::IsCommunityNameInUse ( string name, int id ) : bool