public async Task <IActionResult> Clear(Guid todoId, UpdateTodoRequest request) { request.Id = todoId; return(await Eventor.SendStream <UpdateTodoRequest, UpdateTodoResponse>( request, x => x.Result)); }
public async Task <IActionResult> Put(Guid reviewId, string content) { return(await Eventor.SendStream <UpdateReviewRequest, UpdateReviewResponse>( new UpdateReviewRequest { ReviewId = reviewId, Content = content }, x => x.Result)); }
public async Task <IActionResult> Create(InsertItemToNewCartRequest request) => await Eventor.SendStream <InsertItemToNewCartRequest, InsertItemToNewCartResponse>(request, x => x.Result);
public async Task <IActionResult> RemoveItemInCart(Guid cartId, Guid productId) { return(await Eventor.SendStream <DeleteItemRequest, DeleteItemResponse>( new DeleteItemRequest { CartId = cartId, ProductId = productId }, x => x.ProductId)); }
public async Task <IActionResult> Clear() { return(await Eventor.SendStream <ClearTodosRequest, ClearTodosResponse>( new ClearTodosRequest(), x => x.Result)); }
public async Task <IActionResult> Delete(Guid todoId) { return(await Eventor.SendStream <DeleteTodoRequest, DeleteTodoResponse>( new DeleteTodoRequest { Id = todoId }, x => x.Result)); }
public async Task <IActionResult> Post(AddTodoRequest request) { return(await Eventor.SendStream <AddTodoRequest, AddTodoResponse>( request, x => x.Result)); }
public async Task <IActionResult> Get(Guid todoId) { return(await Eventor.SendStream <GetTodoRequest, GetTodoResponse>( new GetTodoRequest { Id = todoId }, x => x.Result)); }
public async Task <IActionResult> Get() { return(await Eventor.SendStream <GetTodosRequest, GetTodosResponse>( new GetTodosRequest(), x => x.Result)); }
public async Task <IActionResult> Delete(Guid reviewId) { return(await Eventor.SendStream <RemoveReviewRequest, RemoveReviewResponse>( new RemoveReviewRequest { ReviewId = reviewId }, x => x.ReviewId)); }
public async Task <IActionResult> Delete(Guid productId) { return(await Eventor.SendStream <GetReviewsRequest, GetReviewsResponse>( new GetReviewsRequest { ProductId = productId }, x => x.Reviews)); }
public async Task <IActionResult> CheckoutCart(Guid cartId) { return(await Eventor.SendStream <CheckoutRequest, CheckoutResponse>( new CheckoutRequest { CartId = cartId }, x => x.IsSucceed)); }
public async Task <IActionResult> Get(Guid id) { return(await Eventor.SendStream <GetCartRequest, GetCartResponse>( new GetCartRequest { CartId = id }, x => x.Result)); }
public async Task <IActionResult> Post(AddReviewRequest request) => await Eventor.SendStream <AddReviewRequest, AddReviewResponse>(request, x => x.Result);
public async Task <IActionResult> Put(UpdateItemInCartRequest request) => await Eventor.SendStream <UpdateItemInCartRequest, UpdateItemInCartResponse>(request, x => x.Result);