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