예제 #1
0
        public async Task <JsonResult> PostAsync(CreateClientGoodsRequest created)
        {
            created.UserId = UserId;
            var data = await _mediator.ToPipeAsync <CreateClientGoodsRequest, ClientGoods>(created);

            return(Json(data));
        }
예제 #2
0
 public async Task <ClientGoods> CreateAsync(CreateClientGoodsRequest created)
 {
     return(await _mediator.RequestAsync <CreateClientGoodsRequest, ClientGoods>(created));
 }