コード例 #1
0
        public async Task <JsonResult> PostAsync(CreateHospitalGoodsRequest created)
        {
            created.UserId = UserId;
            var data = await _mediator.ToPipeAsync <CreateHospitalGoodsRequest, HospitalGoods>(created);

            return(Json(data));
        }
コード例 #2
0
        public async Task <JsonResult> PostAsync(CreateHospitalGoodsRequest created)
        {
            created.UserId     = Profile.Id;
            created.HospitalId = HospitalDepartment.Hospital.Id;
            var data = await _mediator.ToPipeAsync <CreateHospitalGoodsRequest, HospitalGoods>(created);

            return(Json(data));
        }
コード例 #3
0
 public async Task <HospitalGoods> CreateAsync(CreateHospitalGoodsRequest created)
 {
     return(await _mediator.RequestAsync <CreateHospitalGoodsRequest, HospitalGoods>(created));
 }