public RoleOutputDto GetRoleList(SearchRoleInputDto inputDto) { List <SysRoleEntity> roleEntityList = _sysRoleRepository.GetRoleListByPage(inputDto.Page, inputDto.Name); List <RoleDto> roleDtoList = AutoMapper.Mapper.Map <List <RoleDto> >(roleEntityList); RoleOutputDto outputDto = new RoleOutputDto(); outputDto.RoleDtoList = roleDtoList; return(outputDto); }
public ActionResult GetTreeGridJson(Pagination pagination, string keyword) { SearchRoleInputDto inputDto = new SearchRoleInputDto(pagination, keyword); var data = new { rows = _sysRoleApp.GetRoleList(inputDto).RoleDtoList, pagination.total, pagination.page, pagination.records }; return(Content(JsonConvert.SerializeObject(data))); }