VideoRentalService.rental.Createrental C# (CSharp) Method

Createrental() public static method

Create a new rental object.
public static Createrental ( global rental_id, global rental_date, global inventory_id, global customer_id, global staff_id, global last_update ) : rental
rental_id global Initial value of the rental_id property.
rental_date global Initial value of the rental_date property.
inventory_id global Initial value of the inventory_id property.
customer_id global Initial value of the customer_id property.
staff_id global Initial value of the staff_id property.
last_update global Initial value of the last_update property.
return rental
        public static rental Createrental(global::System.Int32 rental_id, global::System.DateTime rental_date, global::System.Int32 inventory_id, global::System.Int32 customer_id, global::System.Byte staff_id, global::System.DateTime last_update)
        {
            rental rental = new rental();
            rental.rental_id = rental_id;
            rental.rental_date = rental_date;
            rental.inventory_id = inventory_id;
            rental.customer_id = customer_id;
            rental.staff_id = staff_id;
            rental.last_update = last_update;
            return rental;
        }