public async Task <IActionResult> AddBook(int id, int bookId) { await _repository.AddBookToAuthorAsync(id, bookId); return(RedirectToAction(nameof(Details), new { Id = id })); }
public async Task <IActionResult> AddBook(int id, int bookId) { await _repository.AddBookToAuthorAsync(id, bookId); return(RedirectToAction(nameof(Details), new { Id = id })); }