// Inyectamos el repository por el constructor public ServiceTodoBL(IRepositoryTodo <Tarea> repo) { // tareaRepository = new RepositoryTodo<Tarea>(); tareaRepository = repo; }
public TodoController(IRepositoryTodo todos) { _todos = todos; }