Skip to content

Instantly share code, notes, and snippets.

@sfmishra
Created January 6, 2020 19:48
Show Gist options
  • Save sfmishra/8a2c287d8678329abd5de66a4bf47387 to your computer and use it in GitHub Desktop.
Save sfmishra/8a2c287d8678329abd5de66a4bf47387 to your computer and use it in GitHub Desktop.
public class AccountController {
public Account createAccount(String accName, Integer employees, Decimal revenue) {
Account newAcc = new Account(Name = accName, NumberOfEmployees = employees, AnnualRevenue = revenue);
insert newAcc;
return newAcc;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment