public TreinRepository(ITreinContext context) { Context = context; }
public TreinController(IConfiguration configuration) { context = new MSSQLTreinContext(configuration.GetConnectionString("DefaultConnection")); repo = new TreinRepository(context); converter = new TreinViewModelConverter(); }