public static void AddNotificationForUser(int userId, int notificationId) { NotificationDAL.Add(new user_notification_tbl { user_id = userId, notification_id = notificationId, is_read = false }); }
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 })); }
public int Add(Notification obj) { return(notificationDAL.Add(obj)); }