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