Esempio n. 1
0
 public UserProfilesController()
 {
     _userService = InstanceFactory.GetInstance <IUserService>();
     _moviesSeriesWatchListService = InstanceFactory.GetInstance <IMoviesSeriesWatchListService>();
     _moviesSeriesService          = InstanceFactory.GetInstance <IMoviesSeriesService>();
     if (db == null)
     {
         db = new Context();
     }
 }
 public SeasonsController()
 {
     _seasonService       = InstanceFactory.GetInstance <ISeasonService>();
     _moviesSeriesService = InstanceFactory.GetInstance <IMoviesSeriesService>();
 }