コード例 #1
0
ファイル: PlaceRepo.cs プロジェクト: nishans32/Ancestry
        public PlaceRepo(IPlaceStore placeStore, IOptions <DataFileSettings> options, IFileService fileService, IJsonService jsonService)
        {
            _placeStore = placeStore;

            var jsonText = fileService.GetFileContents(options.Value.PeopleJsonFilename);

            _placeStore.Data = jsonService.Parse <List <Place> >(jsonText);
        }
コード例 #2
0
 public PlacesController(IPlaceStore store, ImageUploader imageUploader)
 {
     _store         = store;
     _imageUploader = imageUploader;
 }