Esempio n. 1
0
        public List <ApiSelectTracerSitesByUserReturnModel> GetTracerSitesByUser(int?userId, int?siteId, bool?filteredSites, bool isGuestUser = false)
        {
            List <ApiSelectTracerSitesByUserReturnModel> _result;

            using (var db = new DBAMPContext())
            {
                try
                {
                    _result = db.ApiSelectTracerSitesByUser(userId, siteId, filteredSites, isGuestUser);
                }
                catch (Exception ex)
                {
                    string sqlParam   = "ApiSelectTracerSitesByUser(" + userId + "," + siteId + "," + filteredSites + ")";
                    string methodName = "JCRAPI/Business/SiteServices/GetTracerSitesByUser";
                    exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, userId, siteId, sqlParam, string.Empty);

                    return(null);
                }
            }

            return(_result);
        }