Exemple #1
0
        public OperationResult<ListConceptViewModel> ConceptsOnly()
        {
            var listOfConcepts = this.conceptsService.ConceptsOnly();
            var listofConceptsVm = Mapper.Map<List<ConceptViewModel>>(listOfConcepts);

            var result = new ListConceptViewModel { Concepts = listofConceptsVm };
            return new OperationResult<ListConceptViewModel>(result);
        }
Exemple #2
0
 public OperationResult<ListConceptViewModel> ConceptsWith(string include)
 {
     var propertiesList = include.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
     var list = this.conceptsService.ConceptsWithProperties(propertiesList);
     var listofConceptsVm = Mapper.Map<List<ConceptViewModel>>(list);
     var result = new ListConceptViewModel { Concepts = listofConceptsVm };
     return new OperationResult<ListConceptViewModel>(result);
 }
Exemple #3
0
        public OperationResult<ListConceptViewModel> List()
        {
            var listOfConcepts = this.conceptsService.GetAllConceptsWithAllCollections();
            var listofConceptsVm = Mapper.Map<List<ConceptViewModel>>(listOfConcepts);

            var result = new ListConceptViewModel { Concepts = listofConceptsVm };
            return new OperationResult<ListConceptViewModel>(result);
        }