/// <summary> /// Saves this instance. /// </summary> public void SaveState() { var objectToSave = new DynamicContext(); SaveState(objectToSave); if (!objectToSave.IsEmpty) { DynamicContext.Save <TViewModel>(objectToSave); } }