BikeInCity.Services.InfoService.UpdateCity C# (CSharp) Метод

UpdateCity() публичный Метод

public UpdateCity ( string description, string stationImageUrl, string bikeImageUrl, int cityId ) : void
description string
stationImageUrl string
bikeImageUrl string
cityId int
Результат void
        public void UpdateCity(string description, string stationImageUrl, string bikeImageUrl, int cityId)
        {
            using (var scope = new TransactionScope())
            {
                City city = _repository.Load<City>(cityId);
                city.Description = description;
                city.StationImageUrl = stationImageUrl;
                city.BikeImageUrl = bikeImageUrl;
                scope.Complete();
            }
        }