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); }
public InitiliazeBookResultViewModel() { SearchModel = new SearchModel(); FilterValues = new BookRelatedDropDownListModel(); PagedList = new PagedListModel <FilteredBookListModel>(); }