Exemplo n.º 1
0
 public async Task NotifyNoBaseAsync(string[] userIds, string type, IDataBaseNotificationSourse sourse)
 {
     var template = new DataBaseSourse
     {
         Date         = DateTime.Now,
         Base64Sourse = ObjectToBase64String(sourse),
         Type         = type
     };
     await _notificationService.NotifyAsync(userIds, template, "dataBase");
 }
Exemplo n.º 2
0
 public async Task NotifyNoBaseAsync(string userId, string tokenId, string type, IDataBaseNotificationSourse sourse)
 {
     await _notificationService.NotifyAsync(userId, tokenId, "dataBase",
                                            new DataBaseSourse
     {
         Date         = DateTime.Now,
         Base64Sourse = ObjectToBase64String(sourse),
         Type         = type
     }
                                            );
 }