public async Task <IActionResult> AddToReaded(int id) { var book = _bookRepo.GetBookById(id); var user = await _userManager.FindByNameAsync(User.Identity.Name); await _bookRepo.AddReadedBook(book, user); return(RedirectToAction("ReadedBook", "Home")); }