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