private void OnAddTyreSize(UserPromptViewModel result) { if (result == null) { return; } if (!string.IsNullOrEmpty(result.FirstInput)) { var tyreSize = new TyreSize { Size = result.FirstInput }; TyreSizes.Add(tyreSize); Repository.Add(tyreSize); } }
private void OnRemoveTyreSize(object obj) { Repository.Remove(SelectedTyreSize); TyreSizes.Remove(SelectedTyreSize); }