I have a form where data is posted to a Web API endpoint. The form has two input fields: one for text, and one for a number.
On the Web API side, my object is set up as such:
public class Course
{
public string Title { get; set }
public double? Price { get; set; }
}
When I send the value "25,3" for the Price
, I get the following error:
The value '25,3' is not valid for Price.
Sending a value of "25.3" work fine.
I am posting the form using jQuery form serialization.