public Task RecordSignIn(AuthenticatedUserInfo userInfo) =>
 _sqlQueryDispatcher.ExecuteQuery(new CreateUserSignIn()
 {
     User              = userInfo,
     SignedInUtc       = _clock.UtcNow,
     CurrentProviderId = userInfo.CurrentProviderId
 });
 public static bool CanSubmitQASubmission(AuthenticatedUserInfo userInfo, Guid providerId) =>
 userInfo.IsDeveloper ||
 (userInfo.IsProvider && userInfo.CurrentProviderId.Value == providerId);
 public static bool CanUpdateProviderType(AuthenticatedUserInfo userInfo) =>
 userInfo.IsDeveloper || userInfo.IsHelpdesk;
 public static bool CanUpdateProviderMarketingInformation(AuthenticatedUserInfo userInfo) =>
 userInfo.IsDeveloper || userInfo.IsHelpdesk;
 public static bool CanUpdateProviderDisplayName(AuthenticatedUserInfo userInfo) =>
 userInfo.IsDeveloper || userInfo.IsHelpdesk || userInfo.Role == RoleNames.ProviderSuperUser;