public BaseResponse OldRoleModuleByRoleId([FromBody] RoleModuleByRoleIdRequest request) { var a = _roleService.OldRoleModuleByRoleId(request.RoleId, request.CompId); return(BaseResponse <object> .GetBaseResponse(BusinessStatusType.OK, a)); }
public async Task <BaseResponse> RoleModuleByRoleIdAsync([FromBody] RoleModuleByRoleIdRequest request) { return(BaseResponse <List <ModuleTreeViewModel> > .GetBaseResponse(BusinessStatusType.OK, await _roleService.RoleModuleByRoleIdAsync(request.RoleId, request.CompId))); }