1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-11 05:22:44 +01:00
Radarr/packages/DataTables.Mvc.0.1.0.85/Content/App_Start/DataTablesMvc.cs.pp
2012-07-27 23:37:47 -07:00

17 lines
567 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(DataTablesPageRequest)))
ModelBinders.Binders.Add(typeof(DataTablesPageRequest), new DataTablesModelBinder());
}
}
}