ModelFactoryGenerateNewAccount Method
Namespace: MobileTrack.Common.ExtensionsAssembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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.