Example #1
0
        public ActionResult Details(int id)
        {
            IdDto idDto = new IdDto()
            {
                Id = id
            };
            var           book          = _bookAppService.GetBookById(idDto);
            BookViewModel bookViewModel = new BookViewModel()
            {
                Id       = book.Id,
                BookName = book.BookName,
                Price    = book.Price,
                UserName = book.UserName
            };

            return(View("_EditBookModalView", bookViewModel));
            // return View();
        }
Example #2
0
 public async Task <CommResult <List <BookDto> > > Get(int id)
 {
     return(await _bookService.GetBookById(id));
 }