Beispiel #1
0
        public async Task <bool> Update(PessoaJuridicaUpdateModel model)
        {
            try
            {
                var entityDb = await _pessoaJuridicaRepository.GetById(model.Id);

                var entity = UpdateEntity(entityDb, model);

                _pessoaJuridicaRepository.Update(entity);
                _uow.SaveChanges();

                return(true);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }