Exemple #1
0
        public async Task <IActionResult> AddCopies(BookViewModel vm)
        {
            await _bookManager.AddBookCopies(vm.BookId, vm.BookCopies);

            TempData["message"] = string.Format(Constants.BookCopiesAdded, vm.BookCopies);

            return(RedirectToAction("Index", "SearchBooks"));
        }