//method that adds the lease informaton to the lease table //once the customer selects it public static void AddLease(Lease lease) { var db = new MarinaEntities(); db.Leases.Add(lease); //add customer to the database db.SaveChanges(); // save changes }
//method for adding new customer to the database //takes the new customer object as input public static void AddCust(Customer cust) { var db = new MarinaEntities(); db.Customers.Add(cust); //add customer to the database db.SaveChanges(); // save changes }