Example #1
0
        /// <summary>
        /// Create new things
        /// </summary>
        /// <param name="lstObjects"></param>
        /// <param name="identityWorkId"></param>
        public void Delete(List <Guid> lstGuids, Guid identityWorkId)
        {
            using (var scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
            {
                validator.BeforeDelete(lstGuids);
                baseRecordManager.Delete(lstGuids, identityWorkId);
                validator.AfterDelete(lstGuids);

                scope.Complete();
            }
        }