Ejemplo n.º 1
0
        //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
        }
Ejemplo n.º 2
0
        //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
        }