Beispiel #1
0
 static public int AddLog(Models.LoginLog model)
 {
     try {
         return(logdal.Add(model));
     }
     catch (Exception ex)
     {
         Error_msg = ex.Message;
         BaseBLL.ErrorLog("添加登陆日志时发生错误", "BLL->ClassBLL->GetClassList", ex);
         return(0);
     }
 }
Beispiel #2
0
 static public int UpdateLog(int id)
 {
     try
     {
         return(logdal.Update($" SUCCESS = 0 ", $" id= {id} "));
     }
     catch (Exception ex)
     {
         Error_msg = ex.Message;
         BaseBLL.ErrorLog("添加登陆日志时发生错误", "BLL->ClassBLL->GetClassList", ex);
         return(0);
     }
 }
Beispiel #3
0
 /// <summary>
 /// 取出所有导航数据
 /// </summary>
 /// <returns></returns>
 public static DataSet GetClassList(Models.PaginModel option, out int number)
 {
     try
     {
         return(dal.GetList(option, out number));
     }
     catch (Exception ex)
     {
         Error_msg = ex.Message;
         BaseBLL.ErrorLog("获取导航数据失败", "BLL->ClassBLL->GetClassList", ex);
         number = 0;
         return(null);
     }
 }