public AdventureEntry(AdventureRef adventureRef, long catId, DateTimeOffset start, DateTimeOffset end) : this() { AdventureRef = adventureRef; CatId = catId; Start = start; End = end; }
protected Adventure(AdventureRef adventureRef, string name, string description, TimeSpan duration) { AdventureRef = adventureRef; Name = name; Description = description; Duration = duration; DropPool = new List <DropPoolItem>(); }
public async Task <IEnumerable <AdventureEntry> > FindByAdventureRefAsync(AdventureRef adventureRef) { return(await Queryable.Where(i => i.AdventureRef == adventureRef).ToListAsync()); }
public Adventure FindByAdventureRef(AdventureRef adventureRef) { return(_adventures.FirstOrDefault(i => i.AdventureRef == adventureRef)); }