public IActionResult AddBook([FromForm] AddBookViewModel model) { if (!ModelState.IsValid) { return(View(model)); } _bookAppService.AddBook(model); if (!_notifications.HasNotifications()) { ViewBag.Successed = "添加书籍成功。"; } return(View(new AddBookViewModel())); }