protected string GetCurrentUserId(ISystemContext context)
{
IOperationContext operationContext = context as IOperationContext;
if (operationContext != null && operationContext.UserIdentity != null)
{
return operationContext.UserIdentity.DisplayName;
}
return null;
}