public async Task <JsonResult> PostAsync(CreateClientGoodsRequest created) { created.UserId = UserId; var data = await _mediator.ToPipeAsync <CreateClientGoodsRequest, ClientGoods>(created); return(Json(data)); }
public async Task <ClientGoods> CreateAsync(CreateClientGoodsRequest created) { return(await _mediator.RequestAsync <CreateClientGoodsRequest, ClientGoods>(created)); }