public void SetGenres(MovieCollectorContext _context, Movie movie) { // TODO - Remove usage of dbContext in the view model // Add selected genres from tmdb.org foreach (var genre in movie.Genres) { Genres.Add(_context.Genres.Where(x => x.Name == genre.Name).First().ID.ToString()); } }
public UsersController(MovieCollectorContext dbContext, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, UserServices userServices, FilmServices filmServices) { _context = dbContext; _userManager = userManager; _roleManager = roleManager; _userServices = userServices; _filmServices = filmServices; }
public MovieController(MovieCollectorContext dbContext, UserManager <ApplicationUser> userManager, FilmServices filmServices, UserServices userServices) { // Initialize items to be used throughout the controller _userManager = userManager; _context = dbContext; _filmServices = filmServices; _userServices = userServices; //_movieConverter = movieConverter; // This is the client that is used to work with the TMDb.org API // TODO: Store the TMDB ID elsewhere. client = new TMDbClient("9950b6bfd3eef8b5c9b7343ead080098"); }
public ManageController( MovieCollectorContext context, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IHostingEnvironment environment, IEmailSender emailSender, ISmsSender smsSender, ILoggerFactory loggerFactory) { _context = context; _userManager = userManager; _signInManager = signInManager; _environment = environment; _emailSender = emailSender; _smsSender = smsSender; _logger = loggerFactory.CreateLogger <ManageController>(); }
public FilmServices(MovieCollectorContext context, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager) { _context = context; _userManager = userManager; _roleManager = roleManager; }
public AudioFormatController(MovieCollectorContext dbContext) { _context = dbContext; }
public MediaController(MovieCollectorContext dbContext) { _context = dbContext; }
public GenreController(MovieCollectorContext dbContext) { _context = dbContext; }