public static List <Contact> GetContacts()
        {
            DataTable      dt       = ContactRepository.GetContactsFromDatabase();
            List <Contact> contacts = new List <Contact>();

            contacts = AssemblyHelpers.ConvertDataTable <Contact>(dt);
            return(contacts);
        }
예제 #2
0
        public static List <Project> GetProjects()
        {
            DataTable dt = ProjectRepository.GetProjectsFromDatabase();

            List <Project> projects = new List <Project>();

            projects = AssemblyHelpers.ConvertDataTable <Project>(dt);

            return(projects);
        }
예제 #3
0
        public static List <PlantItem> GetPlantItems(ItemType plantItemType)
        {
            DataTable dtPlantItems = SpItemRepository.GetPlantItemsFromDatabase(plantItemType);

            List <PlantItem> plantItems = new List <PlantItem>();

            plantItems = AssemblyHelpers.ConvertDataTable <PlantItem>(dtPlantItems);

            return(plantItems);
        }