Esempio n. 1
0
        public GetInfoDicsResponse Any(GetAllInfoDics request)
        {
            var infoDics     = acDomain.NodeHost.InfoDics;
            var infoDicsData = new GetInfoDicsResponse()
            {
                Status       = (int)Status.Ok,
                ReasonPhrase = Status.Ok.ToName()
            };

            foreach (var infoDic in infoDics.OrderBy(a => a.SortCode))
            {
                infoDicsData.InfoDics.Add(infoDic.ToInfoDicData());
            }

            return(infoDicsData);
        }
Esempio n. 2
0
        public GetInfoDicsResponse Any(GetAllInfoDics request)
        {
            var infoDics = acDomain.NodeHost.InfoDics;
            var infoDicsData = new GetInfoDicsResponse()
            {
                Status = (int)Status.Ok,
                ReasonPhrase = Status.Ok.ToName()
            };
            foreach (var infoDic in infoDics.OrderBy(a => a.SortCode))
            {
                infoDicsData.InfoDics.Add(infoDic.ToInfoDicData());
            }

            return infoDicsData;
        }