Пример #1
0
 public ActionResult CheckOut()
 {
     LibraryStudent student = new LibraryStudent(Convert.ToString(Session["EmailID"]));
     Session["Message"] = student.CheckOut(Request.QueryString["ISBN"]);
     return RedirectToAction("AllCheckedOut", "Student");
 }
Пример #2
0
 // GET: Student
 public ActionResult Index()
 {
     LibraryStudent student = new LibraryStudent(Convert.ToString(Session["EmailID"]));
     ViewBag.Message = student.FirstName + " " + student.LastName;
     return ViewIfStudentLoggedIn();
 }
Пример #3
0
 public ActionResult AllCheckedOut()
 {
     LibraryStudent student = new LibraryStudent(Convert.ToString(Session["EmailID"]));
     ViewBag.Results = student.AllCheckedOut();
     return ViewIfStudentLoggedIn();
 }