コード例 #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);
 }