Пример #1
0
        /// <summary>
        /// 显示详情
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ActionResult AppLogDetail(string id)
        {
            AppLog appLog = AppLogApp.GetLogById(id);

            ViewBag.Message = appLog == null ? "" : appLog.log_message;
            return(View());
        }
Пример #2
0
        /// <summary>
        /// 清除开奖结果
        /// </summary>
        /// <param name="days">清除多少天之前的开奖结果</param>
        /// <returns></returns>
        public static int Clear(int days = 30)
        {
            DateTime time = DateTime.Now.AddDays(-30).Date;

            return(AppLogApp.Delete(time.ToTimestamp()));
        }