Example #1
0
        public BaseResponse OldRoleModuleByRoleId([FromBody] RoleModuleByRoleIdRequest request)
        {
            var a = _roleService.OldRoleModuleByRoleId(request.RoleId, request.CompId);

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