Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
        //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));
        }