コード例 #1
0
        public CatDetailsController()
        {
            //Note: Use a DI container to inject DataProvider into Controller Constructor
            //public CatDetailsController(IDataProviderFactory provFactory)
            //{
            //}
            IDataProviderFactory provFactory = new DataProviderFactory();

            catsDataProvider = provFactory.GetCatsDataProvider();
        }
コード例 #2
0
 public CatIndexViewModel(ICatDataProvider catDataProvider, INavigationManger navigationManger)
 {
     _catDataProvider  = catDataProvider;
     _navigationManger = navigationManger;
 }