Exemplo n.º 1
0
        public BookRelatedDropDownListModel PrepareFilterModel(BookRelatedDropDownListModel model)
        {
            model.Authors    = new MultiSelectList(_authorService.GetAllAuthors(), "Id", "Name", null);
            model.Categories = new MultiSelectList(_categoryService.GetAllCategories(), "Id", "Title");
            model.Publishers = new MultiSelectList(_publisherService.GetAllPublishers(), "Id", "Name", null);

            return(model);
        }
Exemplo n.º 2
0
 public InitiliazeBookResultViewModel()
 {
     SearchModel  = new SearchModel();
     FilterValues = new BookRelatedDropDownListModel();
     PagedList    = new PagedListModel <FilteredBookListModel>();
 }