// Lånar om de böcker som är möjliga att låna om public ActionResult ReloanAll() { Auth _auth = new Auth((BorrowerWithUser)Session["User"]); if (_auth.HasUserPermission()) { //OBS! Hämta lån innan ActiveAndHistoryBorrows borrows = UserService.GetActiveAndHistoryBorrows(_auth.LoggedInUser.User.PersonId); BorrowService.RenewAllLoans(_auth.LoggedInUser.Borrower, borrows.Active); return(RedirectToAction("Start", borrows)); } return(Redirect("/Error/Code/403")); }