Exemple #1
0
        public List <ApiGetTargetSitesForCopyReturnModel> GetTargetSitesForCopy(int tracerID, int userID)
        {
            List <ApiGetTargetSitesForCopyReturnModel> _result;

            try {
                using (var db = new Data.DBMEdition01Context()) {
                    _result = db.ApiGetTargetSitesForCopy(tracerID, userID);
                }
                return(_result);
            }
            catch (Exception ex) {
                StringBuilder sb = new StringBuilder();
                sb.AppendFormat("EXEC dbo.apiGetTargetSitesForCopy @TracerCustomID={0}, @UserID={1}", tracerID, userID);
                string sqlParam   = sb.ToString();
                string methodName = "JCRAPI/Business/TracerService/GetTargetSitesForCopy";
                exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, null, tracerID, sqlParam, string.Empty);
                return(null);
            }
        }