public UnitOfWork(ApplicationDbContext context) { _context = context; Gigs = new GigRepository(_context); Attendaces = new AttendaceRepository(_context); Followings = new FollowingRepository(_context); Genres = new GenresRepository(_context); }
public HomeController() { _context = ApplicationDbContext.Create(); _attendaceRepository = new AttendaceRepository(_context); }
public HomeController() { _context = new ApplicationDbContext(); _gigRepository = new GigRepository(_context); _attendaceRepository = new AttendaceRepository(_context); }