public GolesService(ea2Context context) { ea2Context ctx = context; GolesRepository = new GolesRepository <T>(ctx); }
public CantidadTotalGolesEquipoApiController() { ea2Context context = new ea2Context(); golesService = new GolesService <GolesPorJugadorEquipo>(context); }
public JugadoresService(ea2Context context) { ea2Context ctx = context; jugadoresRepository = new JugadoresRepository <T>(ctx); }
public GolesRepository(ea2Context context) { ctx = context; defaultObject = ctx.Set <T>(); }