BExIS.Web.Shell.Areas.DCM.Controllers.CreateDatasetController.LoadDataStructureViewList C# (CSharp) Method

LoadDataStructureViewList() public method

public LoadDataStructureViewList ( ) : List
return List
        public List<ListViewItemWithType> LoadDataStructureViewList()
        {
            DataStructureManager dsm = new DataStructureManager();
            List<ListViewItemWithType> temp = new List<ListViewItemWithType>();

            foreach (DataStructure dataStructure in dsm.AllTypesDataStructureRepo.Get())
            {
                string title = dataStructure.Name;
                string type = "";
                if (dataStructure is StructuredDataStructure)
                {
                    type = "structured";
                }

                if (dataStructure is UnStructuredDataStructure)
                {
                    type = "unstructured";
                }

                temp.Add(new ListViewItemWithType(dataStructure.Id, title, dataStructure.Description, type));
            }

            return temp.OrderBy(p => p.Title).ToList();
        }