Exemplo n.º 1
0
        public Guid Create(CompanyBo company)
        {
            var entity = company.ToEntity <Company>();

            _companyRepository.Insert(entity);
            _companyRepository.SubmitChanges();
            if (entity.Id != null)
            {
                return(entity.Id.Value);
            }

            return(Guid.Empty);
        }
Exemplo n.º 2
0
 public void Update(CompanyBo company)
 {
     _companyRepository.Update(company.ToEntity <Company>());
     _companyRepository.SubmitChanges();
 }