private async Task ProcessImportUsersResultAsync(ImportUsersFromExcelJobArgs args, List <ImportUserDto> invalidUsers) { if (invalidUsers.Any()) { var file = _invalidUserExporter.ExportToFile(invalidUsers); await _appMessage.SomeUsersCouldntBeImported(args.User, file.FileToken, file.FileType, file.FileName); } else { await _appMessage.SendMessageAsync( args.User, _localizationSource.GetString("AllUsersSuccessfullyImportedFromExcel"), Abp.Notifications.NotificationSeverity.Success); } }
public async Task SendNoticeToUser(string msg, int?tenantId, long userId) { await _notificationManager.SendMessageAsync(new Abp.UserIdentifier(tenantId, userId), msg, Abp.Notifications.NotificationSeverity.Info); }