Esempio n. 1
0
        public List <ApiGetTracersThatCanBeDeletedReturnModel> GetTracersThatCanBeDeleted(int siteID, int programID, int userID)
        {
            List <ApiGetTracersThatCanBeDeletedReturnModel> _result;

            try {
                using (var db = new Data.DBMEdition01Context()) {
                    _result = db.ApiGetTracersThatCanBeDeleted(siteID, programID, userID);
                }
                return(_result);
            }
            catch (Exception ex) {
                StringBuilder sb = new StringBuilder();
                sb.AppendFormat("EXEC dbo.apiGetTracersThatCanBeDeleted @SiteID='{0}', @ProgramID={1}, @UserID={2}", siteID, programID, userID);
                string sqlParam   = sb.ToString();
                string methodName = "JCRAPI/Business/TracerService/GetTracersThatCanBeDeleted";
                exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, null, siteID, sqlParam, string.Empty);
                return(null);
            }
        }