public static List <Contact> GetContacts() { DataTable dt = ContactRepository.GetContactsFromDatabase(); List <Contact> contacts = new List <Contact>(); contacts = AssemblyHelpers.ConvertDataTable <Contact>(dt); return(contacts); }
public static List <Project> GetProjects() { DataTable dt = ProjectRepository.GetProjectsFromDatabase(); List <Project> projects = new List <Project>(); projects = AssemblyHelpers.ConvertDataTable <Project>(dt); return(projects); }
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); }