public List <ApiGetTracerQuestionsReturnModel> GetTracerQuestions(int tracerID) { List <ApiGetTracerQuestionsReturnModel> _result; try { using (var db = new Data.DBMEdition01Context()) { _result = db.ApiGetTracerQuestions(tracerID); } return(_result); } catch (Exception ex) { StringBuilder sb = new StringBuilder(); sb.AppendFormat("EXEC dbo.apiGetTracerQuestions @TracerID={0}", tracerID); string sqlParam = sb.ToString(); string methodName = "JCRAPI/Business/TracerService/GetTracerQuestions"; exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, null, tracerID, sqlParam, string.Empty); return(null); } }