private void changeList(string tag)
        {
            currentTag = tag;

            switch (tag)
            {
            case "Books":
                InitialList = bookrepository.GetAllBooksView();
                break;

            case "Authors":
                InitialList = authorRepository.GetAllAuthors();
                break;

            case "Bestsellers":
                InitialList = bookrepository.GetTopSellers(12);
                break;

            case "Coming Soon":
                InitialList = bookrepository.GetAllBooksWTag(tag);
                break;

            case "E-Books":
                InitialList = bookrepository.GetAllBooksWTag(tag);
                break;

            case "Second Hand":
                InitialList = bookrepository.GetAllBooksWTag(tag);
                break;

            case "Just Arrived":
                InitialList = bookrepository.GetAllBooksWTag(tag);
                break;

            case "Classics":
                InitialList = bookrepository.GetAllBooksWTag(tag);
                break;

            case "Book Series":
                InitialList = bookrepository.GetAllBooksWTag(tag);
                break;

            default:
                InitialList = bookrepository.GetAllBooksView();
                currentTag  = "Books";
                break;
            }
        }
 public HomeService()
 {
     bookrepository   = new BookRepository();
     authorRepository = new AuthorRepository();
     InitialList      = bookrepository.GetTopSellers(12);
 }
 public List <BookAuthorViewModel> GetTopBooks()
 {
     return(bookrepository.GetTopSellers(12));
 }