Beispiel #1
0
        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 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);
        }