| | |
| | | using zhengcaioa.Models; |
| | | using System.IdentityModel.Tokens.Jwt; |
| | | using CommonToolsCore; |
| | | using System.Transactions; |
| | | |
| | | namespace zhengcaioa.Controllers |
| | | { |
| | |
| | | } |
| | | data.Modifier = curentuser.Id; |
| | | data.Modifytime = DateTime.Now; |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | resultEntity.Result = false; |
| | | using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, |
| | | new TransactionOptions |
| | | { |
| | | IsolationLevel = IsolationLevel.ReadCommitted, |
| | | Timeout = TransactionManager.MaximumTimeout |
| | | } |
| | | )) |
| | | { |
| | | resultEntity = _projectService.saveLiaotian(data); |
| | | scope.Complete(); |
| | | } |
| | | |
| | | ResultEntity resultEntity = _projectService.saveLiaotian(data); |
| | | |
| | | |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |