public static void CreateBlogpostsViewModel() { if (_blogpostsViewModel == null) { _blogpostsViewModel = new BlogpostsViewModel(); } }
/// <summary> /// Provides a deterministic way to create the ViewModelPropertyName property. /// </summary> public static void CreateBlogpostsViewModel() { if (_blogpostsViewModel == null) { _blogpostsViewModel = new BlogpostsViewModel(); } }
/// <summary> /// Provides a deterministic way to delete the ViewModelPropertyName property. /// </summary> public static void ClearBlogpostsViewModel() { _blogpostsViewModel.Cleanup(); _blogpostsViewModel = null; }
public static void ClearBlogpostsViewModel() { _blogpostsViewModel.Cleanup(); _blogpostsViewModel = null; }