[DisplayFormat(DataFormatString = "{0:N}", ApplyFormatInEditMode = true)]
public decimal AmpereFee {
get {
return this._ampereFee;
}
set {
this._ampereFee = value;
}
}
and in the view
@Html.EditorFor(model => model.AmpereFee, new { htmlAttributes = new { @class = "form-control" } })
When I first load the page, the number is perfectly shown:
I have two problems:
First one, when I click submit , I have the following error:

The second error is that when I edit the number it does not display correctly, as in the below image.

what are the solutions for these two problems?
