public DeleteModel(MovieReviews.Models.MovieDbContext context)
 {
     _context = context;
 }
        private readonly ILogger _logger;                             // Logging object

        // Model Constructor. Used to bring in _context and logger from Dependency Injection
        public DeleteReviewModel(MovieReviews.Models.MovieDbContext context, ILogger <ReviewModel> logger)
        {
            _context = context;
            _logger  = logger;
        }
Beispiel #3
0
 public IndexModel(MovieReviews.Models.MovieDbContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public DetailsModel(MovieReviews.Models.MovieDbContext context, ILogger <ReviewModel> logger)
 {
     _logger  = logger;
     _context = context;
 }
Beispiel #5
0
 public EditModel(MovieReviews.Models.MovieDbContext context)
 {
     _context = context;
 }