コード例 #1
0
        public void Update(CountryRegionDto countryRegionDto)
        {
            CountryRegionModels countryRegion =
                ObjectConverter <CountryRegionDto, CountryRegionModels> .Convert(countryRegionDto);

            _repository.Update(countryRegion);
        }
コード例 #2
0
        public CountryRegionDto GetDetailById(int id)
        {
            CountryRegionModels countryRegion    = _repository.GetById(id);
            CountryRegionDto    countryRegionDto =
                ObjectConverter <CountryRegionModels, CountryRegionDto> .Convert(countryRegion);

            return(countryRegionDto);
        }