Example #1
0
        /// <summary>
        /// Called whenever the admin user updates the product to remove the notification
        /// </summary>
        /// <param name="product"></param>
        /// <returns></returns>
        public static bool ProductStockUpdated(Product product)
        {
            try
            {
                return(DashboardNotificationDAO.Delete(product.Id));
            }
            catch (Exception e)
            {
                CompanyCommons.Logging.WriteLog("Chimera.Core.Notifications.ProductStock.ProductStockUpdated()" + e.Message);
            }

            return(false);
        }
Example #2
0
        /// <summary>
        /// The purchase order has shipped, delete the notification.
        /// </summary>
        /// <param name="purchOrder"></param>
        /// <returns></returns>
        public static bool ProcessPurchaseOrderShipped(PurchaseOrderDetails purchOrder)
        {
            try
            {
                return(DashboardNotificationDAO.Delete(purchOrder.Id));
            }
            catch (Exception e)
            {
                CompanyCommons.Logging.WriteLog("Chimera.Core.Notifications.PurchaseOrder.ProcessPurchaseOrderShipped()" + e.Message);
            }

            return(false);
        }
Example #3
0
        public ActionResult DismissNotification(string id)
        {
            DashboardNotificationDAO.Delete(id);

            return(RedirectToAction("Index", "Dashboard"));
        }