public ActionResult Create(BankLender banklender)
        {
            if (ModelState.IsValid)
            {
                banklender.BankLenderID = Guid.NewGuid();
                db.BankLenders.Add(banklender);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.BankLenderAddressID = new SelectList(db.Addresses, "AddressID", "FullAddress", banklender.BankLenderAddressID);
            ViewBag.BankLenderContactID = new SelectList(db.Contacts, "ContactID", "FirstName", banklender.BankLenderContactID);
            return View(banklender);
        }
 public ActionResult Edit(BankLender banklender)
 {
     if (ModelState.IsValid)
     {
         db.Entry(banklender).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.BankLenderAddressID = new SelectList(db.Addresses, "AddressID", "FullAddress", banklender.BankLenderAddressID);
     ViewBag.BankLenderContactID = new SelectList(db.Contacts, "ContactID", "FirstName", banklender.BankLenderContactID);
     return View(banklender);
 }