public async Task <IActionResult> Edit(int id, [Bind("Id,RentalDate")] Borrowing borrowing)
        {
            if (id != borrowing.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    await _borrowingService.UpdateAsync(borrowing);
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!(await BorrowingExists(borrowing.Id)))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(borrowing));
        }