In an ASP .Net Core 1.1 MVC web app, is there any way to allow the user to enter decimal fields with either a decimal comma or a decimal point? Currently (living in South Africa with local server) the user needs to enter decimals using a decimal comma in my forms. If he uses a decimal period (in a textbox for entering latitude and longitude coordinates), ModelState.IsValid is false in the controller. So::
[HttpPost] [ValidateAntiForgeryToken] [Authorize] public async Task<ActionResult> Create(PropertyViewModel vm) { if (!ModelState.IsValid) // is false. return BadRequest(ModelState); }
and the error is "The value '-25.728352' is not valid for Latitude."