Skip to content

Commit 6c5b250

Browse files
Merge pull request aspnet#25 from Elrashid/patch-1
change Range Attribute typeof double to decimal to match Price type
2 parents 6b41e12 + 79c39d0 commit 6c5b250

File tree

1 file changed

+1
-1
lines changed
  • samples/angular/MusicStore/Apis/Models

1 file changed

+1
-1
lines changed

samples/angular/MusicStore/Apis/Models/Album.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public Album()
2323
public string Title { get; set; }
2424

2525
[Required]
26-
[RangeAttribute(typeof(double), "0.01", "100")] // Long-form constructor to work around https://github.com/dotnet/coreclr/issues/2172
26+
[RangeAttribute(typeof(decimal), "0.01", "100")] // Long-form constructor to work around https://github.com/dotnet/coreclr/issues/2172
2727
[DataType(DataType.Currency)]
2828
public decimal Price { get; set; }
2929

0 commit comments

Comments
 (0)