mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-15 14:49:42 +00:00
Filtre par taille des monstres
This commit is contained in:
parent
d2fad57ca6
commit
4796f3b9f2
2 changed files with 2 additions and 4 deletions
|
|
@ -23,7 +23,6 @@ namespace AideDeJeu.Services
|
|||
{
|
||||
using (var context = await CreateContextAsync().ConfigureAwait(false))
|
||||
{
|
||||
//We use OrderByDescending because Posts are generally displayed from most recent to oldest
|
||||
return await context.Spells
|
||||
.AsNoTracking()
|
||||
.Where(spell =>
|
||||
|
|
@ -56,12 +55,11 @@ namespace AideDeJeu.Services
|
|||
{
|
||||
using (var context = await CreateContextAsync().ConfigureAwait(false))
|
||||
{
|
||||
//We use OrderByDescending because Posts are generally displayed from most recent to oldest
|
||||
return await context.Monsters
|
||||
.AsNoTracking()
|
||||
.Where(monster =>
|
||||
monster.Type.Contains(type) &&
|
||||
//("[" + monster.Size.Trim().ToUpper() + "]").Contains("[" + size.ToUpper() + "]") &&
|
||||
(string.IsNullOrEmpty(size) || monster.Size.Equals(size)) &&
|
||||
monster.Source.Contains(source)
|
||||
)
|
||||
//.OrderByDescending(monster => monster.Id)
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ namespace AideDeJeu.ViewModels
|
|||
}
|
||||
}
|
||||
}
|
||||
private int _MaxPower = 18;
|
||||
private int _MaxPower = 28;
|
||||
public int MaxPower
|
||||
{
|
||||
get
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue