Exemplo n.º 1
0
        public IActionResult GetSpecificationAttributesCount(SpecifcationAttributesCountParametersModel parameters)
        {
            var specificationAttributesCount = _specificationAttributeService.GetSpecificationAttributes().Count();

            var specificationAttributesCountRootObject = new SpecificationAttributesCountRootObject()
            {
                Count = specificationAttributesCount
            };

            return(Ok(specificationAttributesCountRootObject));
        }
        public async Task <IActionResult> GetSpecificationAttributesCount(SpecificationAttributesCountParametersModel parameters)
        {
            var specificationAttributesCount = (await _specificationAttributeService.GetSpecificationAttributesAsync()).TotalCount;

            var specificationAttributesCountRootObject = new SpecificationAttributesCountRootObject
            {
                Count = specificationAttributesCount
            };

            return(Ok(specificationAttributesCountRootObject));
        }