コード例 #1
0
        public virtual OperationResult <Profile> Read(Guid id)
        {
            try
            {
                using var transactionScope = new TransactionScope(TransactionScopeOption.Required, transactionOptions, TransactionScopeAsyncFlowOption.Enabled);
                var result = _dao.Read(id);
                transactionScope.Complete();

                return(new OperationResult <Profile>()
                {
                    Success = true, Result = result
                });
            }
            catch (Exception e)
            {
                return(new OperationResult <Profile>()
                {
                    Success = false, Exception = e
                });
            }
        }