I have a field, sale price, which in the model is this way:
public decimal PrecoVenda { get; set; }
In the ViewModel it looks like this:
[Display(Name = "Preço de Venda")]
[Required(ErrorMessage = "O campo {0} é obrigatorio.")]
public decimal PrecoVenda { get; set; }
And here's the View:
<label asp-for="PrecoVenda" class="col-md-2 control-label"></label>
<div class="col-md-2">
<input asp-for="PrecoVenda" class="form-control" placeholder="Insira o preço de venda.">
<span asp-validation-for="PrecoVenda" class="text-danger"></span>
</div>
But when you fill in the values, with a comma, for example "0.00" It returns me this message:
The field Selling price must be a number.
If I put "25.00", when checking the value is "2500.00"