public void RegisterModelBinders(ModelBinderDictionary modelBinders) { modelBinders[typeof(ArchiveData)] = new ArchiveDataModelBinder(); modelBinders[typeof(OneMonthDateRangeAddress)] = new OneMonthDateRangeAddressModelBinder(); modelBinders[typeof(BlogAddress)] = new BlogAddressModelBinder(); modelBinders[typeof(BlogInput)] = new BlogInputModelBinder(); modelBinders[typeof(BlogSearchCriteria)] = new BlogSearchCriteriaModelBinder(); modelBinders[typeof(PostAddress)] = new PostAddressModelBinder(); modelBinders[typeof(PostInput)] = new PostInputModelBinder(); modelBinders[typeof(PostCommentAddress)] = new PostCommentAddressModelBinder(); modelBinders[typeof(FileAddress)] = new FileAddressModelBinder(); modelBinders[typeof(FileInput)] = new FileInputModelBinder(); modelBinders[typeof(FileContentInput)] = new FileContentInputModelBinder(); }
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(); }