/* * CRUD + LIST */ #region CREATE public virtual OperationResult Create(Comment comment) { try { using var transactionScope = new TransactionScope(TransactionScopeOption.Required, transactionOptions, TransactionScopeAsyncFlowOption.Enabled); _dao.Create(comment); transactionScope.Complete(); return(new OperationResult <List <Comment> >() { Success = true }); } catch (Exception e) { return(new OperationResult <List <Comment> >() { Success = false, Exception = e }); } }