Пример #1
0
        public void UpdateBuilding(BuildingDto buildingDto, long adminId)
        {
            ValidateBuilding(buildingDto, adminId);
            var building = _buildingService.Find(buildingDto.BuildingId);

            building.BuildingName = buildingDto.BuildingName;
            _buildingService.Update(building);
            SaveChanges();
        }