public IActionResult Edit(int id, Member member)
        {
            var s = DB.Members
                .Where(x => x.Id == id)
                .SingleOrDefault();
            if (s == null)
                return Content("没有找到记录");

            s.bookName = member.bookName;
            s.writer = member.writer;
            s.publishing = member.publishing;
            s.callNumber = member.callNumber;
            s.barCode = member.barCode;
            s.Note = member.Note;

            DB.SaveChanges();
            return RedirectToAction("Index", "Home");
        }
 public IActionResult Create(Member Member)
 {
     DB.Members.Add(Member);
     DB.SaveChanges();
     return RedirectToAction("Details", "Admin");
 }