mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
17 lines
557 B
ObjectPascal
17 lines
557 B
ObjectPascal
|
using DataTables.Mvc.Core.Helpers;
|
||
|
using DataTables.Mvc.Core.Models;
|
||
|
using System.Web.Mvc;
|
||
|
|
||
|
[assembly: WebActivator.PreApplicationStartMethod(typeof($rootnamespace$.App_Start.DataTablesModelBinderActivator), "Start")]
|
||
|
|
||
|
namespace $rootnamespace$.App_Start
|
||
|
{
|
||
|
public static class DataTablesModelBinderActivator
|
||
|
{
|
||
|
public static void Start()
|
||
|
{
|
||
|
if (!ModelBinders.Binders.ContainsKey(typeof(DataTablesParams)))
|
||
|
ModelBinders.Binders.Add(typeof(DataTablesParams), new DataTablesModelBinder());
|
||
|
}
|
||
|
}
|
||
|
}
|