예제 #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;
            }
        }
예제 #2
0
 public void InsertUserNotification(UserNotification userNotification)
 {
     context.UserNotifications.Add(userNotification);
 }