/// <summary> /// Returns a manually populated list of Seed to simulate getting the list form a database or api call. /// </summary> /// <returns>IList of Seed</returns> public async Task <IList <Seed> > GetList(string type) { if (_seeds.Count == 0) { _dbSeeds = await LoadDefaultSeeds(); _seeds = _modelConverter.ConvertModelListFromModelList <DbSeed, Seed>(_dbSeeds); } return(_seeds.Where(x => x.Type == type).ToList()); }
/// <summary> /// Returns a manually populated list of SeedType to simulate getting the list form a database or api call. /// </summary> /// <returns>IList of SeedType</returns> public async Task <IList <SeedType> > GetList() { if (_seedTypes.Count == 0) { _dbSeedTypes = await LoadDefaultSeedTypes(); _seedTypes = _modelConverter.ConvertModelListFromModelList <DbSeedType, SeedType>(_dbSeedTypes); } return(_seedTypes.OrderBy(x => x.Type).ToList()); }