示例#1
0
 public Addon GetAddon(int addonId)
 {
     return(_addonRepository.Query(table => table.FirstOrDefault(a => a.Id == addonId)));
 }
示例#2
0
 public List <Addon> GetAutoUpdateEnabledAddons()
 {
     return(_addonRepository
            .Query(addons => addons.Where(addon => !addon.IsIgnored && addon.AutoUpdateEnabled))
            .ToList());
 }