示例#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);
        }
示例#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);
        }
示例#3
0
 public bool Destroy(object UserAlertID)
 {
     return(UserAlertMessage.Destroy(UserAlertID) == 1);
 }
示例#4
0
 public bool Delete(object UserAlertID)
 {
     return(UserAlertMessage.Delete(UserAlertID) == 1);
 }