Exemplo n.º 1
0
        public async Task <ActionResult <AuthorCoursesQueryResponse> > Courses([FromRoute] AuthorCoursesQuery query)
        {
            var result = await _queryBus.ExecuteAsync <AuthorCoursesQuery, AuthorCoursesQueryResponse>(query);

            return(Ok(result));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Orders()
        {
            var result = await _queryBus.ExecuteAsync <MyOrdersQuery, MyOrdersResponse>(new MyOrdersQuery());

            return(Ok(result));
        }
        public async Task <ActionResult <PhoneQueryResponse> > Phone([FromRoute] Guid id)
        {
            var result = await queryBus.ExecuteAsync <PhoneQuery, PhoneQueryResponse>(new PhoneQuery(id));

            return(Ok(result));
        }
Exemplo n.º 4
0
        public async Task <IActionResult> Phones()
        {
            var result = await _queryBus.ExecuteAsync <PhoneListQuery, PhoneListResponse>(new PhoneListQuery());

            return(Ok(result));
        }
 public async Task <string> SignIn(SignInQuery query)
 => await _queryBus.ExecuteAsync(query);
Exemplo n.º 6
0
        public async Task <IActionResult> Orders()
        {
            var result = await _queryBus.ExecuteAsync <OrdersListQuery, OrdersListRespone>(new OrdersListQuery());

            return(Ok(result));
        }