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(); }
public async Task <CommResult <List <BookDto> > > Get(int id) { return(await _bookService.GetBookById(id)); }