public void RegisterModelBinders(ModelBinderDictionary modelBinders) { modelBinders[typeof(PagingInfo)] = new PagingInfoModelBinder(); modelBinders[typeof(ArchiveData)] = new ArchiveDataModelBinder(); modelBinders[typeof(OneMonthDateRangeAddress)] = new OneMonthDateRangeAddressModelBinder(); modelBinders[typeof(Blog)] = container.Resolve <BlogModelBinder>(); modelBinders[typeof(BlogInput)] = new BlogInputModelBinder(); modelBinders[typeof(BlogSearchCriteria)] = new BlogSearchCriteriaModelBinder(); modelBinders[typeof(Post)] = container.Resolve <PostModelBinder>(); modelBinders[typeof(PostInput)] = new PostInputModelBinder(); modelBinders[typeof(PostComment)] = container.Resolve <PostCommentModelBinder>(); modelBinders[typeof(File)] = container.Resolve <FileModelBinder>(); modelBinders[typeof(FileInput)] = new FileInputModelBinder(); modelBinders[typeof(FileContentInput)] = new FileContentInputModelBinder(); }
public void RegisterModelBinders(ModelBinderDictionary modelBinders) { modelBinders[typeof(SearchCriteria)] = new Oxite.Modules.Search.ModelBinders.SearchCriteriaModelBinder(); modelBinders[typeof(PagingInfo)] = new PagingInfoModelBinder(); }