public ApoyoController(IConfiguration configuration) { Configuration = configuration; string connectionString = Configuration["ConnectionStrings:DefaultConnection"]; apoyoService = new ApoyoService(connectionString); }
public ApoyoController(PersonasContext context) { _apoyoService = new ApoyoService(context); }
public ApoyoController(IConfiguration configuration, GeneralContext _GContext) { Configuration = configuration; //string connectionString = Configuration["ConnectionStrings:DefaultConnection"]; _apyService = new ApoyoService(_GContext); }