public static void AddNotificationForUser(int userId, int notificationId)
 {
     NotificationDAL.Add(new user_notification_tbl {
         user_id = userId, notification_id = notificationId, is_read = false
     });
 }
Esempio n. 2
0
 public static void AddNotification(Notification notification)
 {
     NotificationDAL.Add(Converters.NotificationConverter.ToDAL(notification));
 }
 public static int AddNotification(string message)
 {
     return(NotificationDAL.Add(new notification_tbl {
         messege = message
     }));
 }
Esempio n. 4
0
 public int Add(Notification obj)
 {
     return(notificationDAL.Add(obj));
 }