常用方法
常用方法
常用方法
常用方法
public async Task <IActionResult> ExecuteAsync(int countryId, CancellationToken cancellationToken) { var zones = await _zoneRepository.GetZoneAllByCountry(countryId, cancellationToken); if (zones == null) { return(new NotFoundResult()); } var zoneViewModels = _zoneMapper.MapList(zones); return(new OkObjectResult(zoneViewModels)); }