Beispiel #1
0
 public PartialViewResult BookSummary(Reader reader, Shelf shelf, Book book)
 {
     //检查用户所选图书是否已在书架上或处于借阅状态
     if (orderProcessor.Norepeat(book, reader) && shelf.Norepeat(book))
     {
         ViewBag.statue = "可借";
     }
     else
     {
         ViewBag.statue = "不可借";
     }
     return(PartialView(book));
 }