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); }
private void DeleteMotorbike() { _blc.MotorbikeService().DeleteMotorbike(_selectedMotorbike); _motorbikes.Remove(_selectedMotorbike); }