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

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

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

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

            return(MappingExtensions.MapList <Category, CategoryModel>(categoryModels));
        }
예제 #5
0
        public void Add(ErrorLogModel errorLogModel)
        {
            IErrorLogRepository errorLogRepo = new ErrorLogRepository();

            errorLogRepo.Add(MappingExtensions.MapTo <ErrorLogModel, ErrorLog>(errorLogModel));
        }