public ActionResult RenewLoan(string barcode, string personid, int index) { if (new Auth((BorrowerWithUser)Session["User"]).HasAdminPermission()) { ActiveAndHistoryBorrows borrows = new ActiveAndHistoryBorrows(); borrows.Active = BorrowService.GetActiveBorrowedBooks(personid); BorrowService.RenewLoad(BorrowerService.GetBorrower(personid), borrows.Active[index].Borrow.Barcode); TempData["AlertView"] = AlertView.Build("Lån är uppdaterade.", AlertType.Success); return(Redirect("/BorrowerAdmin/Borrower/" + personid)); } return(Redirect("/Error/Code/403")); }