Пример #1
0
        // GET: BorrowsController
        public async Task <IActionResult> Index()
        {
            BorrowsViewModel borrows = new BorrowsViewModel
            {
                Lender   = await _borrowService.GetAllByLender(User),
                Borrower = await _borrowService.GetAllByOwner(User)
            };

            return(View(borrows));
        }