Exemple #1
0
        public void OnGet(int id)
        {
            Book = _booksRepository.Get(id);
            DateTime PubDate = ((Book.PublishedDate != null) ? (DateTime)Book.PublishedDate : DateTime.MinValue);

            PublishedDate = PubDate.Date.ToString("dd MMM yyyy", CultureInfo.CreateSpecificCulture("en-US"));
            DateTime CreDate = Book.CreationDate;

            CreationDate = CreDate.Date.ToString("dd MMM yyyy", CultureInfo.CreateSpecificCulture("en-US"));
            if (Book.GenreId != null)
            {
                byte Id = (byte)Book.GenreId;
                Genre = _booksGenresRepository.GetGenre(Id);
            }

            History = _bookReadHistoriesRepository.GetByBook(id);
        }
Exemple #2
0
        public void OnGet(int id)
        {
            Book = _booksRepository.Get(id);

            Bookhistory = _bookshistory.GetByBook(id);
        }
Exemple #3
0
 public void OnGet(int id)
 {
     Book    = _booksRepository.Get(id);
     History = _bookReadHistoriesRepository.GetByBook(id);
 }