public virtual IList <StaticTextEntity> FindByNameAndScope( string name, string dictionaryScopeName ) { using (var session = GetSession()) { var staticTextRepository = new StaticTextRepository(session); var resultList = staticTextRepository.FindByNameAndScope( name, dictionaryScopeName ); return(resultList); } }
public virtual void DeleteAll( string name, string dictionaryScopeName ) { using (var session = GetSession()) { var staticTextRepository = new StaticTextRepository(session); var staticTextEntities = staticTextRepository.FindByNameAndScope( name, dictionaryScopeName ); staticTextRepository.DeleteAll(staticTextEntities); session.Flush(); } }