Exemple #1
0
        public FacetContent Load2([FromBody] JObject json)
        {
            var facetsConfig = ReconstituteConfigService.Reconstitute(json);
            var facetContent = LoadService.Load(facetsConfig);

            return(facetContent);
        }
Exemple #2
0
        public FacetContent Load([FromBody] FacetsConfig2 facetsConfig)
        {
            var reconstitutedFacetConfig = ReconstituteConfigService.Reconstitute(facetsConfig);
            var facetContent             = LoadService.Load(reconstitutedFacetConfig);

            return(facetContent);
        }
Exemple #3
0
        public string Load3([FromBody] JObject json)
        {
            var          facetsConfig = ReconstituteConfigService.Reconstitute(json);
            FacetContent facetContent = LoadService.Load(facetsConfig);
            string       data         = JsonConvert.SerializeObject(facetContent);

            return(data);
        }
    public ViewModel(LoadService loadService, SaveService saveService)
    {
        _LoadService = loadService;
        _SaveService = saveService;
        // Create command instance for Save
        // Create command instance for Load

        Items = loadService.Load();
    }
    public ViewModel(LoadService loadService, SaveService saveService)
    {
        _LoadService = loadService;
        _SaveService = saveService;
        // Create command instance for Save
        // Create command instance for Load

        var itemsList = _LoadService.Load();

        Items = new ObservableCollection(itemsList);
    }
    public ViewModel(LoadService loadService, SaveService saveService)
    {
        _LoadService = loadService;
        _SaveService = saveService;
        // Create command instance for Save
        // Create command instance for Load

        var itemsList   = _LoadService.Load();
        var facadeItems = itemsList.Select(item => new ConfigurationItemPropertiesFacade(item));

        Items = new ObservableCollection(facadeItems);
    }
Exemple #7
0
        private static void Load()
        {
            var myService = new LoadService();

            myService.Load(_transformResult);
        }