// create temporary data and store into the application state
        public static void Seed()
        {
            var lender = new Lender() { Id = 1, Firstname = "Jerome", Lastname = "Franco" };
            lender.Borrowers = new List<Borrower>();
            var firstBorrower = new Borrower()
            {
                Id = 1,
                Firstname = "Gina",
                Lastname = "Franco",
                Lender = lender,
                Loan = new Loan()
                {
                    Amount = 15000,
                    Interest = 10,
                    Balance = 12000,
                    Date = DateTime.Now,
                    DueDate = DateTime.Now.AddYears(1).AddMonths(6),
                    Type = Core.Models.LoanType.OneYearAndSixMonths,
                    Status = LoanStatus.Pending
                }
            };
            lender.Borrowers.Add(firstBorrower);
            var secondBorrower = new Borrower()
            {
                Id = 2,
                Firstname = "Jocelyn",
                Lastname = "Gadia",
                Lender = lender,
                Loan = new Loan()
                {
                    Amount = 10000,
                    Interest = 7,
                    Balance = 8000,
                    Date = DateTime.Now,
                    DueDate = DateTime.Now.AddYears(1),
                    Type = Core.Models.LoanType.OneYear,
                    Status = LoanStatus.Pending
                }
            };
            lender.Borrowers.Add(secondBorrower);
            var thirdBorrower = new Borrower()
            {
                Id = 3,
                Firstname = "Kevin",
                Lastname = "Cainday",
                Lender = lender,
                Loan = new Loan()
                {
                    Amount = 5000,
                    Interest = 5,
                    Balance = 4000,
                    Date = DateTime.Now,
                    DueDate = DateTime.Now.AddMonths(6),
                    Type = Core.Models.LoanType.SixMonths,
                    Status = LoanStatus.Overdue
                }
            };
            lender.Borrowers.Add(thirdBorrower);

            HttpContext.Current.Application.Add("LendOnTheGoTmpStorage", lender);
        }
 public void Add(int lenderId, Borrower newBorrower)
 {
     _borrowerRepo.Add(lenderId, newBorrower);
 }