Exemple #1
0
        public bool SaveBranding(BrandingDO b)
        {
            try
            {
                _objOrganizationDAL.SaveBranding(b.OrganizationId, b.SubDomain, b.CNameUrl);

                return(true);
            }
            catch
            {
                return(false);
            }
        }
Exemple #2
0
        public BrandingDO GetBranding(int organizationId)
        {
            DataTable dtBranding = _objOrganizationDAL.GetBranding(organizationId);

            BrandingDO b = null;

            if (dtBranding.Rows.Count > 0)
            {
                b = new BrandingDO();
                b.OrganizationId = Convert.ToInt32(dtBranding.Rows[0]["OrganizationId"].ToString());
                b.SubDomain      = dtBranding.Rows[0]["SubDomain"].ToString();
                b.CNameUrl       = dtBranding.Rows[0]["CNameUrl"].ToString();
            }

            return(b);
        }
        public BrandingDO GetBranding(int organizationId)
        {
            DataTable dtBranding = _objOrganizationDAL.GetBranding(organizationId);

            BrandingDO b = null;

            if (dtBranding.Rows.Count > 0)
            {
                b = new BrandingDO();
                b.OrganizationId = Convert.ToInt32(dtBranding.Rows[0]["OrganizationId"].ToString());
                b.SubDomain = dtBranding.Rows[0]["SubDomain"].ToString();
                b.CNameUrl = dtBranding.Rows[0]["CNameUrl"].ToString();
            }

            return b;
        }
        public bool SaveBranding(BrandingDO b)
        {
            try
            {
                _objOrganizationDAL.SaveBranding(b.OrganizationId, b.SubDomain, b.CNameUrl);

                return true;
            }
            catch
            {
                return false;
            }
        }