internal int InsertAPICallLog(OIAPICallAuditEntity objAPICallLog)
        {
            int result = 0;

            try
            {
                StoredProcedureEntity sproc = new StoredProcedureEntity();
                sproc.StoredProcedureName = "dbo.InsertOIAPICallAudit";
                sproc.StoredProceduresParameter.Add(GetParam("@SubDomain", objAPICallLog.SubDomain.ToString(), SQLServerDatatype.VarcharDataType));
                sproc.StoredProceduresParameter.Add(GetParam("@CallType", objAPICallLog.CallType.ToString(), SQLServerDatatype.VarcharDataType));
                sproc.StoredProceduresParameter.Add(GetParam("@CallURL", objAPICallLog.CallURL.ToString(), SQLServerDatatype.VarcharDataType));
                sproc.StoredProceduresParameter.Add(GetParam("@CandidateCount", objAPICallLog.CandidateCount.ToString(), SQLServerDatatype.IntDataType));
                sproc.StoredProceduresParameter.Add(GetParam("@ResultCode", objAPICallLog.ResultCode.ToString(), SQLServerDatatype.IntDataType));
                sproc.StoredProceduresParameter.Add(GetParam("@ErrorDescription", objAPICallLog.ErrorDescription.ToString(), SQLServerDatatype.VarcharDataType));
                result = Convert.ToInt32(sql.ExecuteScalar(CommandType.StoredProcedure, sproc));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(result);
        }
示例#2
0
 public int InsertAPICallLog(OIAPICallAuditEntity objAPICallLog)
 {
     return(rep.InsertAPICallLog(objAPICallLog));
 }