ModelFactoryGenerateLogForUserAction Method
Generates a log generated because a user performed an action.
Namespace: MobileTrack.Common.ExtensionsAssembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public static LogDto GenerateLogForUserAction(
AccountDto user,
string ipAddress,
EventId userEvent,
IIdLabel impactedObject,
Guid impactedObjectCompanyId,
IIdLabel? snapShotResource
)
- user AccountDto
- User that performed the action
- ipAddress String
- IP Address of the user
- userEvent EventId
- Event the user enacted
- impactedObject IIdLabel
- The object that was impacted because of the action.
- impactedObjectCompanyId Guid
- The company the impactedObject belongs to
- snapShotResource IIdLabel
- A snapshot of the alterations of the object.
LogDtoGenerated log
The parameters
impactedObject and
impactedObjectCompanyId are separated because otherwise one couldn't
generate a log for
CompanyDto's.