Exemple #1
0
        public List <ApiGetTracersThatCanBeCopiedReturnModel> GetTracersThatCanBeCopied(int siteID, int programID, int userID)
        {
            List <ApiGetTracersThatCanBeCopiedReturnModel> _result;

            try {
                using (var db = new Data.DBMEdition01Context()) {
                    _result = db.ApiGetTracersThatCanBeCopied(siteID, programID, userID);
                }
                return(_result);
            }
            catch (Exception ex) {
                StringBuilder sb = new StringBuilder();
                sb.AppendFormat("EXEC dbo.apiMultisiteCopy @SiteID='{0}', @ProgramID={1}, @UserID={2}", siteID, programID, userID);
                string sqlParam = sb.ToString();

                string methodName = "JCRAPI/Business/TracerService/GetTracersThatCanBeCopied";
                exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, null, siteID, sqlParam, string.Empty);
                return(null);
            }
        }