public ActionResult CheckOut() { LibraryStudent student = new LibraryStudent(Convert.ToString(Session["EmailID"])); Session["Message"] = student.CheckOut(Request.QueryString["ISBN"]); return RedirectToAction("AllCheckedOut", "Student"); }
// GET: Student public ActionResult Index() { LibraryStudent student = new LibraryStudent(Convert.ToString(Session["EmailID"])); ViewBag.Message = student.FirstName + " " + student.LastName; return ViewIfStudentLoggedIn(); }
public ActionResult AllCheckedOut() { LibraryStudent student = new LibraryStudent(Convert.ToString(Session["EmailID"])); ViewBag.Results = student.AllCheckedOut(); return ViewIfStudentLoggedIn(); }