Update model
This commit is contained in:
@ -67,7 +67,7 @@ namespace Elwig.Helpers {
|
||||
return new(false, "PLZ zu kurz");
|
||||
}
|
||||
int plz = int.Parse(input.Text);
|
||||
if (!ctx.Postleitzahlen.Any(p => p.Plz == plz)) {
|
||||
if (ctx.Postleitzahlen.Find(plz) == null) {
|
||||
return new(false, "Ungültige PLZ");
|
||||
}
|
||||
return new(true, null);
|
||||
|
Reference in New Issue
Block a user