public void Update(CountryRegionDto countryRegionDto) { CountryRegionModels countryRegion = ObjectConverter <CountryRegionDto, CountryRegionModels> .Convert(countryRegionDto); _repository.Update(countryRegion); }
public CountryRegionDto GetDetailById(int id) { CountryRegionModels countryRegion = _repository.GetById(id); CountryRegionDto countryRegionDto = ObjectConverter <CountryRegionModels, CountryRegionDto> .Convert(countryRegion); return(countryRegionDto); }