public static IEnumerable <DbStaticEffect> GetAllStaticEffects() { IDbStaticEffectRepository effectRepo = new EFDbStaticEffectRepository(); return(effectRepo.DbStaticEffects); }
public static DbStaticEffect GetDbStaticEffect(int effectSourceId) { IDbStaticEffectRepository effectRepo = new EFDbStaticEffectRepository(); return(effectRepo.DbStaticEffects.FirstOrDefault(s => s.Id == effectSourceId)); }
public static IEnumerable <DbStaticEffect> GetEffectGainedAtLocation(string location) { IDbStaticEffectRepository effectRepo = new EFDbStaticEffectRepository(); return(effectRepo.DbStaticEffects.Where(e => e.ObtainedAtLocation == location)); }