示例#1
0
        public BeltVM GetBeltById(int id)
        {
            var query = new GetBeltByIdQuery(id);
            var data  = _readData.GetBeltById(query);
            var vm    = _mapper.Map <BeltVM>(data);

            return(vm);
        }
示例#2
0
        public Belt GetBeltById(GetBeltByIdQuery query)
        {
            var data = _messages.Dispatch(query);

            return(data);
        }