public ActionResult Index()
 {
     MemberTransactionViewer viewer = new MemberTransactionViewer();
         viewer.SetBorrowEntryViews(libRepo.BorrowEntryRepo.ListWhere(target => target.GetBorrower(ref libRepo).UserName ==
                                    HttpContext.User.Identity.Name.ToString().Substring(2) &&
                                    target.ReturnDate == null));
         viewer.SetRequestEntryViews((libRepo.RequestEntryRepo.ListWhere(target => target.GetRequestUser(ref libRepo).UserName ==
                                    HttpContext.User.Identity.Name.ToString().Substring(2))));
         return View(viewer);
 }
        /* [Private] MemberTransactionViewer Check(BorrowEntry entry)
         * This method will get related borrow entry and request entry of desired user
         * then parameterized it to MemberTransactionViewer to return as result.
         * If user input incorrect UserID notify user that "No member that id's exists."
         */
        private MemberTransactionViewer Check(BorrowEntry entry)
        {
            Member m;
            if ((m = libRepo.MemberRepo.Find(entry.UserID)) == null)
            {
                TempData["ErrorNoti"] = "No member that id's exists.";
                return null;
            }
            MemberTransactionViewer viewer = new MemberTransactionViewer();
            viewer.SetBorrowEntryViews(libRepo.BorrowEntryRepo.ListWhere(targetEntry => targetEntry.UserID == entry.UserID
                && targetEntry.ReturnDate == null));

            viewer.SetRequestEntryViews(libRepo.RequestEntryRepo.ListWhere(targetentry => targetentry.UserID == entry.UserID));
            viewer.Name = m.Name;
            return viewer;
        }