public void Insert(int UserId,int AlertId,int AlertCount)
        {
            UserAlertMessage item = new UserAlertMessage();

            item.UserId = UserId;

            item.AlertId = AlertId;

            item.AlertCount = AlertCount;

            item.Save(UserName);
        }
Beispiel #2
0
 public static void RemoveUserAlertMessages(int userId)
 {
     UserAlertMessage.Delete("userId", userId);
     UserAlertMessageCache.RemoveUser(userId);
 }
        public void Update(int UserAlertID,int UserId,int AlertId,int AlertCount)
        {
            UserAlertMessage item = new UserAlertMessage();

                item.UserAlertID = UserAlertID;

                item.UserId = UserId;

                item.AlertId = AlertId;

                item.AlertCount = AlertCount;

            item.MarkOld();
            item.Save(UserName);
        }