I created a custom binder for decimal places, but ran into a problem. I can not register it through Global.asax.cs, because I do not have it.
Global.asax.cs
How to make this line work in startup.cs class?
ModelBinders.Binders.Add(typeof(decimal), new DecimalModelBinder());
It will work in the OWIN startup class only if it is System.Web.Mvcreferenced.
System.Web.Mvc
public void Configuration(IAppBuilder app) { ModelBinders.Binders.Add(typeof(decimal), new DecimalModelBinder()); ... }
Source: https://habr.com/ru/post/1611302/More articles:Insert values into an Access 2003 database from a Python application using pyodbc - pythonHow to add submenu to WordPress admin panel - phpC ++ hiding characters increase travel time - c ++x: Binding to DependencyProperty does not work (classic Binding works fine) - c #How to reset Control value - angularHow to restart adroid app using terminal on macOS? - androidDatazen server is not ready after recovery - sql-serverWant to save and run a Python script in a Jupyter (Anaconda) laptop - pythonОбразец нулевого объекта с ярко выраженными отношениями - phpAndroid: The resource was received when the stack trace was connected, but was not released. See Java.io.Closeable for information on avoiding resource leaks - javaAll Articles