Example #1
0
        private void SaveMotorbike()
        {
            _motorbike.Name           = Name;
            _motorbike.Producer       = SelectedProducer;
            _motorbike.ProductionYear = ProductionYear;
            _motorbike.Transmission   = SelectedTransmission;
            _motorbike.Id             = _blc.MotorbikeService().GetNewId(_motorbike.Id);

            _dialogService.CloseWindow(_guid);
        }
Example #2
0
 private void DeleteMotorbike()
 {
     _blc.MotorbikeService().DeleteMotorbike(_selectedMotorbike);
     _motorbikes.Remove(_selectedMotorbike);
 }