コード例 #1
0
        public async Task <CustomerViewModel> GetById(Guid id)
        {
            var customerQuery = new GetCustomerByIdQuery(id);
            var customer      = await Bus.GetQuery <Customer, GetCustomerByIdQuery>(customerQuery);

            return(_mapper.Map <CustomerViewModel>(customer));
        }