Beispiel #1
0
        public IActionResult Index()
        {
            var model = new LendingIndexViewModel();

            model.Lendings = lendingService.GetLendings();
            return(View(model));
        }
 public IActionResult OnGet(int id)
 {
     Client = clientService.GetClientById(id);
     if (Client == null)
     {
         return(RedirectToPage("NotFound"));
     }
     Lendings = lendingService.GetLendings();
     return(Page());
 }
 public void OnGet()
 {
     Lendings = lendingService.GetLendings();
 }