示例#1
0
 public async Task AddAsync(Region entity)
 {
     var cancelToken = new CancellationTokenSource();
     await _regionDal.AddAsync(entity, cancelToken.Token);
 }
 public IResult AddAsync(Region region)
 {
     _regionDal.AddAsync(region);
     return(new SuccessResult(RegionMessages.Added));
 }