public async Task <ActionResult <AuthorCoursesQueryResponse> > Courses([FromRoute] AuthorCoursesQuery query) { var result = await _queryBus.ExecuteAsync <AuthorCoursesQuery, AuthorCoursesQueryResponse>(query); return(Ok(result)); }
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)); }
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);
public async Task <IActionResult> Orders() { var result = await _queryBus.ExecuteAsync <OrdersListQuery, OrdersListRespone>(new OrdersListQuery()); return(Ok(result)); }