public ActionResult PartialSpecialBooks(string search = null, int page = 1, bool action = false) { book = new BookPagination ( () => { return(_service.ListAll().Where(x => x.SpecialEdition).OrderBy(x => x.Name)); } ); book.Book.QuantidadeMaxima = 4; book.Book.PaginaAtual = page; book.Book.Busca = search; ViewBag.Action = action; return(PartialView(book)); }
public BooksController(ILibrary _service, IAuthor _serviceA, ICompany _serviceC, ILanguage _serviceL) { this._service = _service; this._serviceA = _serviceA; this._serviceC = _serviceC; this._serviceL = _serviceL; book = new BookPagination ( () => { return(_service.ListAll().OrderBy(x => x.Name)); } ); }