Esempio n. 1
0
        public void UpdateUserNotification(UserNotification userNotification)
        {
            UserNotification targetUserNotification = context.UserNotifications.Find(userNotification.UserNotificationID);

            if (targetUserNotification != null)
            {
                targetUserNotification.DateTime = userNotification.DateTime;
                targetUserNotification.IsRead = userNotification.IsRead;
                targetUserNotification.Message = userNotification.Message;
            }
        }
Esempio n. 2
0
 public void InsertUserNotification(UserNotification userNotification)
 {
     context.UserNotifications.Add(userNotification);
 }