public ActionResult SearchAlbum(string title, int page = 1, int pagesize = 3) { var albums = albumRepository.SearchByTitle(title, page, pagesize); var Pagination = albumRepository.CalculatePagesForSearch(title, pagesize); AlbumAuthorCategory albumAuthorCategory = new AlbumAuthorCategory { Albums = albums, Categories = CategoryList, Pagination = Pagination, SearchKeyword = title }; return(View("Index", albumAuthorCategory)); }