Example #1
0
        public DataProvider()
        {
            var context = new  MovieManiacsContext();

            this.UserRepository  = new UserRepository(context);
            this.MovieRepository = new MovieRepository(context);
        }
Example #2
0
        public void ExecuteTask(int id, string message, string subject)

        {
            // Create DB Context
            using (var dbContext = new MovieManiacsContext())
            {
                NotifyViaSMTP(id, message, subject);
            }
        }
Example #3
0
 public UserRepository(MovieManiacsContext context)
     : base(context)
 {
 }
Example #4
0
 public BaseRepository(MovieManiacsContext context)
 {
     _context = context;
 }