public void AddView(Guid postID, string viewType) { string[] viewTypes = GetViewTypes(); if (viewTypes.Contains(viewType, StringComparer.OrdinalIgnoreCase)) { viewStore.EnqueueView(postID, viewType); } }