コード例 #1
0
        public void save(DetailsDto Details_dto)
        {
            try
            {
                using (TransactionScope tx = new TransactionScope(TransactionScopeOption.Required))
                {
                    Details Detail = new Details();
                    var     designation_position = _detailsRepository.getAll();

                    _detailsMaker.copy(ref Detail, Details_dto);
                    _detailsRepository.insert(Detail);

                    tx.Complete();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }