/// <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); }
/// <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); }
public ActionResult DismissNotification(string id) { DashboardNotificationDAO.Delete(id); return(RedirectToAction("Index", "Dashboard")); }