Exemplo n.º 1
0
        public string GetSiteFullName(int siteID)
        {
            string returnValue = string.Empty;

            using (var db = new DBAMPContext())
            {
                try
                {
                    returnValue = db.ApiGetSiteFullName(siteID).ResultSet1.SingleOrDefault().SiteFullName;
                }
                catch (Exception ex)
                {
                    string sqlParam   = "ApiGetSiteFullName(" + siteID + ")";
                    string methodName = "JCRAPI/Business/GuestUserServices/GetSiteFullName";
                    exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, null, siteID, sqlParam, string.Empty);

                    return(null);
                }
            }
            return(returnValue);
        }