コード例 #1
0
 public async Task AddAsync(Shipper entity)
 {
     var cancelToken = new CancellationTokenSource();
     await _shipperDal.AddAsync(entity, cancelToken.Token);
 }
コード例 #2
0
 public IResult AddAsync(Shipper shipper)
 {
     _shipperDal.AddAsync(shipper);
     return(new SuccessResult(ShipperMessages.Added));
 }