From d9ee96c0577c2240c77924b241500447a20f351b Mon Sep 17 00:00:00 2001 From: SamSys Date: Mon, 1 Dec 2025 11:49:05 +0330 Subject: [PATCH] change edit role --- AccountManagement.Application/RoleApplication.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/AccountManagement.Application/RoleApplication.cs b/AccountManagement.Application/RoleApplication.cs index c2714f36..e80d1304 100644 --- a/AccountManagement.Application/RoleApplication.cs +++ b/AccountManagement.Application/RoleApplication.cs @@ -116,8 +116,7 @@ public class RoleApplication : IRoleApplication if (apiResult.Success) { - if (apiResult.Result.isSuccess) - { + //اگر این نقش در پروگرام منیجر وجود داشت ویرایش کن if (apiResult.Result.data.role.Any()) { @@ -190,13 +189,8 @@ public class RoleApplication : IRoleApplication } } - } - else - { - _unitOfWork.RollbackAccountContext(); - return operation.Failed("ارتباط با اپلیکیش پروگرام منیجر برقرار نشد"); - - } + + } else