public UnitOfWork(GoingOutContext context) { _context = context; }
public GenericRepository(GoingOutContext context) { _context = context; dbSet = context.Set <TEntity>(); }
public GroupsController(GoingOutContext context) { _groupServices = new GroupsService(context); }
public GroupsService(GoingOutContext context) { _unitOfWork = new UnitOfWork(context); }
public UsersController(GoingOutContext context) { _userServices = new UsersService(context); _groupServices = new GroupsService(context); }