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)); }