/// <summary> /// Gets the borrower by given ID. /// </summary> /// <param name="idBorrower">The ID of the borrower.</param> /// <returns>The Borrower object found.</returns> public Borrower GetBorrowerById(int idBorrower) { return(borrowerRepository.GetByID(idBorrower)); }
public ActionResult Details(int id) { Borrower borrower = borrowerRepository.GetByID(id); return(View(borrower)); }
public JsonResult Details(int id) { var b = borrowerRepository.GetByID(id); return(Json(b)); }