Exemple #1
0
        public async Task <ApiResult> DeleteOrgNodeUsers(OrgUserView nodeView)
        {
            ApiResult ret = new ApiResult();

            try
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    await _orgRepo.DeleteOrgNodeUsers(nodeView);

                    ret.code = Code.Success;

                    scope.Complete();
                }
            }
            catch (Exception ex)
            {
                ret.code = Code.Failure;
                ret.msg  = ex.Message;
            }

            return(ret);
        }