public DataProvider() { var context = new MovieManiacsContext(); this.UserRepository = new UserRepository(context); this.MovieRepository = new MovieRepository(context); }
public void ExecuteTask(int id, string message, string subject) { // Create DB Context using (var dbContext = new MovieManiacsContext()) { NotifyViaSMTP(id, message, subject); } }
public UserRepository(MovieManiacsContext context) : base(context) { }
public BaseRepository(MovieManiacsContext context) { _context = context; }