示例#1
0
        public CircleGetAllOutputData Handle(CircleGetAllInputData request)
        {
            var circles    = circleRepository.FindAll();
            var circleData = circles.Select(toCircleData).ToList();

            return(new CircleGetAllOutputData(circleData));
        }
示例#2
0
        public CircleIndexResponseModel Index()
        {
            var inputData = new CircleGetAllInputData();
            var result    = bus.Handle(inputData);

            var circles = result.Circles.Select(x => new CircleResponseModel(x)).ToList();

            return(new CircleIndexResponseModel(circles));
        }