/// ------------------------------------------------------- /// <summary> /// 관리자 로그 추적 Insert /// </summary> /// ------------------------------------------------------- public int AddAdminLogData(TAdminLog objAdminLog) { try { con.Open(); SqlCommand com = new SqlCommand("dbo.UP_ADMIN_LOG_TX_INS", con); com.CommandType = CommandType.StoredProcedure; com.Parameters.AddWithValue("@pi_strMenuLink", objAdminLog.MenuLink); com.Parameters.AddWithValue("@pi_strMethodName", objAdminLog.MethodName); com.Parameters.AddWithValue("@pi_strIPAddr", objAdminLog.IPAddr); com.Parameters.AddWithValue("@pi_strAdminID", objAdminLog.AdminID); pl_intRetVal = com.ExecuteNonQuery(); return(pl_intRetVal); } catch (Exception e) { Console.WriteLine(e); return(-1); } finally { con.Close(); } }
/// ------------------------------------------------------- /// <summary> /// 관리자 로그 입력 /// </summary> /// ------------------------------------------------------- public JsonResult AdminLogInsert(TAdminLog objAdminLog) { return(Json(objAdminDao.AddAdminLogData(objAdminLog), JsonRequestBehavior.AllowGet)); }