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

            return(Json(data));
        }
Example #2
0
 public async Task <HospitalClient> CreateAsync(CreateHospitalClientRequest created)
 {
     return(await _mediator.RequestAsync <CreateHospitalClientRequest, HospitalClient>(created));
 }