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