Beispiel #1
0
        public ViewResult GetBookById(int id)
        {
            Title = "Book By Id";
            var data = _bookData.BookById(id);

            return(View(data));
        }
        public ViewResult GetBookById(int id, string title)
        {
            Title = "Book Details";
            var data = _bookData.BookById(id);

            return(View(data));
        }
 public Book GetBookById(int id)
 {
     return(_bookdata.BookById(id));
 }
        public ViewResult GetBookById(int id)
        {
            var bookById = _bookData.BookById(id);

            return(View(bookById));
        }
Beispiel #5
0
        public async Task <ViewResult> GetBookById(int id)
        {
            var data = await _bookData.BookById(id);

            return(View(data));
        }