/// <summary> /// Filtrerar lånen på vald medlem och returnerar Return /// </summary> /// <param name="vm"></param> /// <returns>Loans/Return</returns> public IActionResult FilterOnMemberReturn(LoanReturnVM vm) { vm.Loans = _loanService.GetAllActiveLoansForMember(vm.SelectMember.ID); vm.Book = _bookService.GetAll(); vm.Members = _memberService.GetSelectListItems(); return(View("Return", vm)); }
//Visar lån att returnera public IActionResult Return() { var vm = new LoanReturnVM(); vm.Loans = _loanService.GetActiveLoans(); vm.Book = _bookService.GetAll(); vm.Members = _memberService.GetSelectListItems(); return(View(vm)); }