public ActionResult SystemLogEdit(SystemLogModel model) { if (string.IsNullOrEmpty(model.ID)) { ViewData[EditFlag] = true; model.InsTime = System.DateTime.Now; if (model.Insert() != null) { LogDAL.AppendSQLLog(MTConfig.CurrentUserID, typeof(SystemLogModel)); return(JsonSuccess("")); } return(JsonError("")); } else { ViewData[EditFlag] = true; model.InsTime = System.DateTime.Now; if (model.Update() > 0) { LogDAL.AppendSQLLog(MTConfig.CurrentUserID, typeof(SystemLogModel)); return(JsonSuccess("")); } return(JsonError("")); } }