コード例 #1
0
        public IActionResult Get([FromQuery] CriteriaDto criteria)
        {
            int total;
            var values = _valueLogic.GetAll(criteria, out total, criteria.Fields);
            var result = criteria.ToPagedResult(values, total, "Get", "Values", new { test = 0 });

            return(Ok(result));
        }
コード例 #2
0
        public IActionResult GetNew([FromQuery] CriteriaDto criteria)
        {
            int total;
            var values = _valueLogic.GetAll(criteria, out total);
            //var result = queryOptions.ToPagedResult(values, total, "kevin", new { test = 0 });
            var result = criteria.ToPagedResult <ValueDto, EmbeddedValueDto>(values, total);

            return(Ok(result));
        }