コード例 #1
0
        /// <summary>
        /// 获取操作分组
        /// </summary>
        /// <param name="filter">操作分组筛选信息</param>
        /// <returns>返回操作分组</returns>
        public OperationGroupDto GetOperationGroup(OperationGroupFilterDto filter)
        {
            var operationGroup = operationGroupService.Get(filter?.ConvertToFilter());

            return(operationGroup.MapTo <OperationGroupDto>());
        }
コード例 #2
0
        /// <summary>
        /// 获取操作分组列表
        /// </summary>
        /// <param name="filter">操作分组筛选信息</param>
        /// <returns>返回操作分组</returns>
        public List <OperationGroupDto> GetOperationGroupList(OperationGroupFilterDto filter)
        {
            var operationGroupList = operationGroupService.GetList(filter?.ConvertToFilter());

            return(operationGroupList.Select(c => c.MapTo <OperationGroupDto>()).ToList());
        }
コード例 #3
0
        /// <summary>
        /// 获取操作分组分页
        /// </summary>
        /// <param name="filter">操作分组筛选信息</param>
        /// <returns>返回操作分组</returns>
        public IPaging <OperationGroupDto> GetOperationGroupPaging(OperationGroupFilterDto filter)
        {
            var operationGroupPaging = operationGroupService.GetPaging(filter?.ConvertToFilter());

            return(operationGroupPaging.ConvertTo <OperationGroupDto>());
        }