ModelFactoryGenerateNewAccount Method
Namespace: MobileTrack.Common.ExtensionsAssembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public static AccountDto GenerateNewAccount(
CompanyDto company,
EnvironmentDto environment,
AccountDto createdBy,
IStringLocalizer loc
)
- company CompanyDto
- Company the Account belongs to
- environment EnvironmentDto
- Environment the Account belongs to
- createdBy AccountDto
- User creating the account
- loc IStringLocalizer
- Localization tool
AccountDtoNewly generated Account
This method does not check if the user has the correct permissions to create a new account.