コード例 #1
0
        //Update
        public void UpdateContinent(ContinentViewModel continent)
        {
            using (var repository = new ContinentRepository())
            {
                var continentDbModel = new Continent
                {
                    Id   = continent.Id,
                    Name = continent.Name
                };

                repository.EditContinent(continentDbModel);
            }
        }