From 79c39d0f6c7dd87e3dcfde92e9301230a7478cdb Mon Sep 17 00:00:00 2001 From: Elrashid Date: Fri, 25 Dec 2015 02:19:12 +0400 Subject: [PATCH] change Range Attribute typeof double to decimal to match Price type --- samples/angular/MusicStore/Apis/Models/Album.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/angular/MusicStore/Apis/Models/Album.cs b/samples/angular/MusicStore/Apis/Models/Album.cs index 919bf1b1..e7d9246f 100644 --- a/samples/angular/MusicStore/Apis/Models/Album.cs +++ b/samples/angular/MusicStore/Apis/Models/Album.cs @@ -23,7 +23,7 @@ public Album() public string Title { get; set; } [Required] - [RangeAttribute(typeof(double), "0.01", "100")] // Long-form constructor to work around https://github.com/dotnet/coreclr/issues/2172 + [RangeAttribute(typeof(decimal), "0.01", "100")] // Long-form constructor to work around https://github.com/dotnet/coreclr/issues/2172 [DataType(DataType.Currency)] public decimal Price { get; set; } @@ -37,4 +37,4 @@ public Album() public virtual ICollection OrderDetails { get; set; } } -} \ No newline at end of file +}