/// <summary> /// Provides a deterministic way to create the ReadPost property. /// </summary> public static void CreateReadPost() { if (_readPostViewModel == null) { _readPostViewModel = new ReadPostViewModel(); } }
/// <summary> /// Provides a deterministic way to delete the ReadPost property. /// </summary> public static void ClearReadPost() { if (_readPostViewModel != null) _readPostViewModel.Cleanup(); _readPostViewModel = null; }