mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-30 23:16:09 +00:00 
			
		
		
		
	Correction filtre
This commit is contained in:
		
							parent
							
								
									dbe69aba04
								
							
						
					
					
						commit
						90105c3d4e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1,4 +1,5 @@ | ||||||
| using System.Collections.Generic; | using System.Collections.Generic; | ||||||
|  | using System.Linq; | ||||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||||
| using AideDeJeu.ViewModels; | using AideDeJeu.ViewModels; | ||||||
| using AideDeJeuLib.Cards; | using AideDeJeuLib.Cards; | ||||||
|  | @ -15,8 +16,7 @@ namespace AideDeJeuWeb.Controllers | ||||||
|         public async Task<IEnumerable<CardData>> Get(string classe) |         public async Task<IEnumerable<CardData>> Get(string classe) | ||||||
|         { |         { | ||||||
|             var items = AideDeJeu.Tools.Helpers.GetResourceObject<IEnumerable<Spell>>("AideDeJeu.Data.spells_vf.json"); |             var items = AideDeJeu.Tools.Helpers.GetResourceObject<IEnumerable<Spell>>("AideDeJeu.Data.spells_vf.json"); | ||||||
|             var filter = new VFSpellFilterViewModel(); |             var fitems = items.Where(it => it.Source.Contains(classe)).OrderBy(it => it.Level).ThenBy(it => it.NamePHB); | ||||||
|             var fitems = await filter.FilterItems(items); |  | ||||||
| 
 | 
 | ||||||
|             var cardDatas = new List<CardData>(); |             var cardDatas = new List<CardData>(); | ||||||
|             foreach (var spell in fitems) |             foreach (var spell in fitems) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez