Ejemplo n.º 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();
        }
 public CatIndexViewModel(ICatDataProvider catDataProvider, INavigationManger navigationManger)
 {
     _catDataProvider  = catDataProvider;
     _navigationManger = navigationManger;
 }