public bool IsFeatureEnabled(int siteID, int featureID) { bool rtn; using (var db = new DBAMPContext()) { try { rtn = db.ApiIsFeatureEnabled(siteID, featureID).ResultSet1.FirstOrDefault().IsEnabled; } catch (Exception ex) { string sqlParam = "ApiIsFeatureEnabled(" + siteID + "," + featureID + ")"; string methodName = "JCRAPI/Business/GuestUserServices/IsFeatureEnabled"; exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, null, siteID, sqlParam, string.Empty); return(false); } } return(rtn); }