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