public ActionResult GetSubDocuments(int id)
        {
            var subRequestSearchResults = new SubReqSearchUpdateViewModel();
            var results = subRequestSearchResults.GetAllLoans().Where(x => x.LoanAccountNumber == id);

            return PartialView("subRequestSearchResults", results);
        }
        public IEnumerable <SubReqSearchUpdateViewModel> GetAllLoans()
        {
            var loans = new List <SubReqSearchUpdateViewModel>();

            for (int i = 1, j = 100; i < 20 && j < 120; i++)
            {
                var loan = new SubReqSearchUpdateViewModel();
                loan.BorrowerLastName  = "LastName" + j;
                loan.LoanId            = i;
                loan.LoanAccountNumber = j;
                loan.DateReceived      = DateTime.Now.AddDays(-i).ToShortDateString();
                loans.Add(loan);
            }
            return(loans);
        }
        public IEnumerable<SubReqSearchUpdateViewModel> GetAllLoans()
        {
            var loans = new List<SubReqSearchUpdateViewModel>();

            for(int i=1,j=100;i<20 && j<120;i++)
            {
                var loan = new SubReqSearchUpdateViewModel();
                loan.BorrowerLastName = "LastName" + j;
                loan.LoanId = i;
                loan.LoanAccountNumber = j;
                loan.DateReceived = DateTime.Now.AddDays(-i).ToShortDateString();
                loans.Add(loan);
            }
            return loans;
        }