ow
This commit is contained in:
1 parent
04c69d4941
commit
4f57b65451
15 files changed
+2338
-24
No files matched your search
+184
-2
@@ -71,12 +71,52 @@ this.securityHelpFunctionService= securityHelpFunctionService;
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[PermissionOperate(name: "SecurityHelpFunction", operate: "Find")]
|
||||
[HttpPost]
|
||||
public dynamic FindBySearchCriteria(SecurityHelpFunctionSearchCriteria criteria)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var result = securityHelpFunctionService.FindBySearchCriteria(criteria);
|
||||
return result;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[PermissionOperate(name: "SecurityHelpFunction", operate: "Find")]
|
||||
[HttpPost]
|
||||
public dynamic FindFeatureBySearchCriteria(SecurityHelpFunctionSearchCriteria criteria)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var result = securityHelpFunctionService.FindFeatureBySearchCriteria(criteria);
|
||||
return result;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[PermissionOperate(name: "SecurityHelpFunction", operate: "Insert")]
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
public dynamic Insert(SecurityHelpFunctionEntity data)
|
||||
public dynamic Insert(SecurityHelpFunctionData data)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -97,7 +137,7 @@ this.securityHelpFunctionService= securityHelpFunctionService;
|
||||
[PermissionOperate(name: "SecurityHelpFunction", operate: "Update")]
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
public dynamic Update(SecurityHelpFunctionEntity data)
|
||||
public dynamic Update(SecurityHelpFunctionData data)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -135,6 +175,148 @@ this.securityHelpFunctionService= securityHelpFunctionService;
|
||||
}
|
||||
}
|
||||
|
||||
[PermissionOperate(name: "SecurityHelpFunction", operate: "Find")]
|
||||
[HttpPost]
|
||||
public dynamic FindByFunctionName(string functionName)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var result = securityHelpFunctionService.FindByFunctionName(functionName);
|
||||
return result;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[PermissionOperate(name: "SecurityHelpFunction", operate: "Update")]
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
public dynamic SaveFunction(SecurityHelpFunctionData data)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var result = securityHelpFunctionService.SaveFunction(data);
|
||||
return result;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[PermissionOperate(name: "SecurityHelpFunction", operate: "Delete")]
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
public dynamic DeleteByFunctionName(string functionName){
|
||||
try
|
||||
{
|
||||
securityHelpFunctionService.DeleteByFunctionName(functionName);
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[PermissionOperate(name: "SecurityHelpFunction", operate: "Find")]
|
||||
[HttpPost]
|
||||
public dynamic FindByGroupCode(string groupCode)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var result = securityHelpFunctionService.FindByGroupCode(groupCode);
|
||||
return result;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[PermissionOperate(name: "SecurityHelpFunction", operate: "Update")]
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
public dynamic SaveFeatureGroup(SecurityHelpFeatureData data)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var result = securityHelpFunctionService.SaveFeatureGroup(data);
|
||||
return result;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[PermissionOperate(name: "SecurityHelpFunction", operate: "Delete")]
|
||||
[HttpPost]
|
||||
[UnitOfWork]
|
||||
public dynamic DeleteByGroupCode(string groupCode){
|
||||
try
|
||||
{
|
||||
securityHelpFunctionService.DeleteByGroupCode(groupCode);
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
public dynamic FindFunctionNameOptions()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var result = securityHelpFunctionService.FindFunctionNameOptions();
|
||||
return result;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user