public UserProfilesController() { _userService = InstanceFactory.GetInstance <IUserService>(); _moviesSeriesWatchListService = InstanceFactory.GetInstance <IMoviesSeriesWatchListService>(); _moviesSeriesService = InstanceFactory.GetInstance <IMoviesSeriesService>(); if (db == null) { db = new Context(); } }