IEnumerable <DocumentController> GetControllersForContentCheck() { // This may happen if the content view is still being initialized if (view == null) { return(Enumerable.Empty <DocumentController> ()); } // Exclude root controller from GetAllControllers() since it will be already returned by GetActiveControllerHierarchy() return(view.GetActiveControllerHierarchy().Concat(view.GetAllControllers().Where(c => c != controller))); }
IEnumerable <DocumentController> GetControllersForContentCheck() { // Exclude root controller from GetAllControllers() since it will be already returned by GetActiveControllerHierarchy() return(view.GetActiveControllerHierarchy().Concat(view.GetAllControllers().Where(c => c != controller))); }