public ActionResult DisplayDVD(int id) { var manager = new DVDManager(); //var d = db.GetAllDVDs().Find(x => x.dvdID == id); var response = manager.GetDVDInfo(id); //var dvd = response.Data.FirstOrDefault(); return View("DisplayDVD", response.Data); }
public ActionResult CheckOut(DVDInfo id) { var manager = new DVDManager(); var response = manager.AddBorrower(id); var dvd = manager.GetDVDInfo(id.dvdID); return View("CheckOut", response.Data); }