Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void Update(DashBoardNotificationsInfo objInfo)
 {
     DataProvider.Instance().DashBoardNotificationsUpdate(objInfo.msgId, objInfo.msgTo, objInfo.msgFrom, objInfo.msgLink, objInfo.msgText, objInfo.msgStatus, objInfo.msgTime);
 }
Esempio n. 4
0
 public int Add(DashBoardNotificationsInfo objInfo)
 {
     return((int)DataProvider.Instance().DashBoardNotificationsAdd(objInfo.msgTo, objInfo.msgFrom, objInfo.msgLink, objInfo.msgText, objInfo.msgStatus, objInfo.msgTime));
 }