コード例 #1
0
        /// <summary>
        /// Get Notification
        /// </summary>
        /// <returns>Returns JSON Result of recent changes</returns>
        public JsonResult GetNotification()
        {
            var notificationRegisterTime = Session["LastUpdated"] != null?Convert.ToDateTime(Session["LastUpdated"]) : DateTime.Now;

            NotificationComponent notificationComponent = new NotificationComponent();
            var list = notificationComponent.GetRecentChanges(notificationRegisterTime);

            return(new JsonResult {
                Data = list, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }