Example #1
0
        public Srv.Dto.Common.List.GridView.Tag Tag(CallContext context = default)
        {
            _logger.LogTrace("Query: " + GetType().FullName + "." + System.Reflection.MethodBase.GetCurrentMethod()?.Name);

            var repository = _commonTagRepository.GetAllTag();
            var tagItems   = repository.ToList().Select(
                tag => _mapper.Map <Srv.Dto.Common.Tag>(tag)
                ).ToList();

            var commonAutomationTypeDns = _queryListKeyValue.AutomationTypeId();

            var commonAnalogDigitalDns = _queryListKeyValue.AnalogDigitalSignal();

            var commonTagGroupDns = _queryListKeyValue.TagGroupId();

            var commonInOutDns = _queryListKeyValue.InputOutput();

            var commonConnectionDns = _queryListKeyValue.ConnectionId();

            var output = new Srv.Dto.Common.List.GridView.Tag(
                tagItems, commonAutomationTypeDns.List,
                commonAnalogDigitalDns.List, commonTagGroupDns.List,
                commonInOutDns.List, commonConnectionDns.List);

            return(output);
        }