/// <summary> /// Update the current Marque. /// </summary> /// <param name="CurrentDescription">The current Marque.</param> public void UpdateMarque(String CurrentDescription) { if (ReferenceVM == -1) { MarquesModel CurrentMarque = new MarquesModel(CurrentDescription); MarquesDao.Insert(CurrentMarque); } else { MarquesModel CurrentMarque = new MarquesModel(ReferenceVM, CurrentDescription); MarquesDao.Update(CurrentMarque); } View.Close(); }