/// <summary> /// 添加日志 /// </summary> /// <param name="content">日志内容</param> public static void addLog(string content) { ZhongLi.Model.sys_Logs log = new ZhongLi.Model.sys_Logs(); log.UserID = Convert.ToInt32(Utils.GetCookie("UserID")); log.Remark = content; log.AddTime = DateTime.Now + ""; log.IpAddress = DTRequest.GetIP(); new ZhongLi.Bll.sys_Logs().Add(log); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(ZhongLi.Model.sys_Logs model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(ZhongLi.Model.sys_Logs model) { return(dal.Add(model)); }