public IEnumerable <Models.Borrower> Get() { var borrowerList = _borrowerRepository.GetAll(); return(borrowerList); }
/// <summary> /// Get all borrowers from system /// </summary> /// <returns></returns> public List <BorrowerDTO> GetAll() { try { // call repository method to get all borrowers var borrowersList = _mapper.Map <List <Borrower>, List <BorrowerDTO> >(_repository.GetAll()); return(borrowersList); } catch (Exception ex) { throw ex; } }
public JsonResult Borrowers(int page, int size) { var b = borrowerRepository.GetAll().Skip(page * size).Take(size); return(Json(b.ToList(), JsonRequestBehavior.AllowGet)); }
public List <Borrower> GetAll() { return(_borrowerRepository.GetAll()); }