save()

Inserts new records or updates existing records that have been changed. After this operation is finished, it returns a PageReference to the original page, if known, or the home page.

Signature

public System.PageReference save()

Return Value

Type: System.PageReference