Ejemplo n.º 1
0
        public IStory FindByUniqueName(string uniqueName)
#endif
        {
            Check.Argument.IsNotEmpty(uniqueName, "uniqueName");

            return(DataContext != null?FindByUniqueNameQuery.Invoke(DataContext, uniqueName) : Database.StoryDataSource.FirstOrDefault(s => s.UniqueName == uniqueName));
        }
Ejemplo n.º 2
0
        public ITag FindByUniqueName(string uniqueName)
#endif
        {
            Check.Argument.IsNotEmpty(uniqueName, "uniqueName");

            return((DataContext != null)
                ? FindByUniqueNameQuery.Invoke(DataContext, uniqueName)
                : Database.TagDataSource.FirstOrDefault(t => t.UniqueName == uniqueName));
        }