Esempio n. 1
0
        public List <ClientModel> GetClients()
        {
            IClientRepository clientRepository = new ClientRepository();
            var clients = clientRepository.GetAll().ToList();

            return(MappingExtensions.MapList <Client, ClientModel>(clients));
        }
Esempio n. 2
0
        public List <PracticeAreaModel> GetAll()
        {
            IPracticeAreaRepository practiceAreaRepository = new PracticeAreaRepository();
            var practiceAreaModels = practiceAreaRepository.GetAll().ToList();

            return(MappingExtensions.MapList <PracticeArea, PracticeAreaModel>(practiceAreaModels));
        }
Esempio n. 3
0
        public List <FormTypeModel> GetAll()
        {
            IFormTypeRepository formTypeRepository = new FormTypeRepository();
            var formTypes = formTypeRepository.GetAll().ToList();

            return(MappingExtensions.MapList <FormType, FormTypeModel>(formTypes));
        }
Esempio n. 4
0
        public List <CategoryModel> GetAll()
        {
            ICategoryRepository categoryRepository = new CategoryRepository();
            var categoryModels = categoryRepository.GetAll().ToList();

            return(MappingExtensions.MapList <Category, CategoryModel>(categoryModels));
        }