ow
This commit is contained in:
1 parent
fcbeba7287
commit
f2f5807372
33 files changed
+1399
-1444
No files matched your search
@@ -137,6 +137,90 @@ this.familyTreeService= familyTreeService;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class RequestFamilyTreePermissionCompositionData
|
||||
{
|
||||
public string treeId { get; set; }
|
||||
public string currentPersonId { get; set; }
|
||||
|
||||
}
|
||||
[PermissionOperate(name: "FamilyTree", operate: "Find")]
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
public dynamic RequestFamilyTreePermission(RequestFamilyTreePermissionCompositionData compositionData){
|
||||
try
|
||||
{
|
||||
familyTreeService.RequestFamilyTreePermission(compositionData.treeId,compositionData.currentPersonId);
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class ApproveFamilyTreePermissionCompositionData
|
||||
{
|
||||
public string treeId { get; set; }
|
||||
public string currentPersonId { get; set; }
|
||||
public string userName { get; set; }
|
||||
public string managerIndc { get; set; }
|
||||
|
||||
}
|
||||
[PermissionOperate(name: "FamilyTree", operate: "Find")]
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
public dynamic ApproveFamilyTreePermission(ApproveFamilyTreePermissionCompositionData compositionData){
|
||||
try
|
||||
{
|
||||
familyTreeService.ApproveFamilyTreePermission(compositionData.treeId,compositionData.currentPersonId,compositionData.userName,compositionData.managerIndc);
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class RejectFamilyTreePermissionCompositionData
|
||||
{
|
||||
public string treeId { get; set; }
|
||||
public string currentPersonId { get; set; }
|
||||
public string userName { get; set; }
|
||||
|
||||
}
|
||||
[PermissionOperate(name: "FamilyTree", operate: "Find")]
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
public dynamic RejectFamilyTreePermission(RejectFamilyTreePermissionCompositionData compositionData){
|
||||
try
|
||||
{
|
||||
familyTreeService.RejectFamilyTreePermission(compositionData.treeId,compositionData.currentPersonId,compositionData.userName);
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[PermissionOperate(name: "FamilyTree", operate: "Update")]
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
|
||||
Reference in new issue
Block a user