public static Boolean SendNotification(DashBoardNotificationsInfo dni)
        {
            Boolean sent = false;

            try
            {
                int ret = new DashBoardNotificationsController().Add(dni);
                sent = true;
                return(sent);
            }
            catch (Exception ex)
            {
            }
            return(sent);
        }
        public static Boolean ChangeNotificationStatus(DashBoardNotificationsInfo dni, int newStatus)
        {
            Boolean sent = false;

            try
            {
                dni.msgStatus = newStatus;
                new DashBoardNotificationsController().Update(dni);
                sent = true;
                return(sent);
            }
            catch (Exception ex)
            {
            }
            return(sent);
        }
Exemple #3
0
 public void Update(DashBoardNotificationsInfo objInfo)
 {
     DataProvider.Instance().DashBoardNotificationsUpdate(objInfo.msgId, objInfo.msgTo, objInfo.msgFrom, objInfo.msgLink, objInfo.msgText, objInfo.msgStatus, objInfo.msgTime);
 }
Exemple #4
0
 public int Add(DashBoardNotificationsInfo objInfo)
 {
     return((int)DataProvider.Instance().DashBoardNotificationsAdd(objInfo.msgTo, objInfo.msgFrom, objInfo.msgLink, objInfo.msgText, objInfo.msgStatus, objInfo.msgTime));
 }