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