Exemple #1
0
        public void updateCompany(int id, Update company)
        {
            DBHelper._Company dbhelp          = new DBHelper._Company();
            Company           existingCompany = dbhelp.GetByid(id);

            if (existingCompany == null)
            {
                throw new CDSException(10301);
            }

            existingCompany.Name                    = company.Name;
            existingCompany.ShortName               = company.ShortName;
            existingCompany.Address                 = company.Address;
            existingCompany.CompanyWebSite          = company.CompanyWebSite;
            existingCompany.ContactName             = company.ContactName;
            existingCompany.ContactEmail            = company.ContactEmail;
            existingCompany.ContactPhone            = company.ContactPhone;
            existingCompany.Latitude                = company.Latitude;
            existingCompany.Longitude               = company.Longitude;
            existingCompany.CultureInfo             = company.CultureInfoId;
            existingCompany.AllowDomain             = company.AllowDomain;
            existingCompany.ExtAppAuthenticationKey = company.ExtAppAuthenticationKey;
            if (company.DeletedFlag.HasValue)
            {
                existingCompany.DeletedFlag = (bool)company.DeletedFlag;
            }

            dbhelp.Update(existingCompany);
        }
Exemple #2
0
        public void updateCompanyLogoURL(int id, string url)
        {
            DBHelper._Company dbhelp          = new DBHelper._Company();
            Company           existingCompany = dbhelp.GetByid(id);

            existingCompany.LogoURL = url;
            dbhelp.Update(existingCompany);
        }
Exemple #3
0
        public void updateCompanyLogoURL(int id, string url)
        {
            DBHelper._Company dbhelp          = new DBHelper._Company();
            Company           existingCompany = dbhelp.GetByid(id);

            if (existingCompany == null)
            {
                throw new CDSException(10301);
            }

            existingCompany.LogoURL = url;
            dbhelp.Update(existingCompany);
        }