2012-04-21 07:02:18 +02:00
|
|
|
using DataTables.Mvc.Core.Helpers;
|
|
|
|
using DataTables.Mvc.Core.Models;
|
|
|
|
using System.Web.Mvc;
|
|
|
|
|
|
|
|
[assembly: WebActivator.PreApplicationStartMethod(typeof(NzbDrone.Web.App_Start.DataTablesModelBinderActivator), "Start")]
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.App_Start
|
|
|
|
{
|
|
|
|
public static class DataTablesModelBinderActivator
|
|
|
|
{
|
|
|
|
public static void Start()
|
|
|
|
{
|
2012-07-28 08:37:47 +02:00
|
|
|
if (!ModelBinders.Binders.ContainsKey(typeof(DataTablesPageRequest)))
|
|
|
|
ModelBinders.Binders.Add(typeof(DataTablesPageRequest), new DataTablesModelBinder());
|
2012-04-21 07:02:18 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|