public ServiceAll(AngajatDbRepository angajatDbRepository, CursaDbRepository cursaDbRepository, InscriereDbRepository inscriereDbRepository, ParticipantDbRepository participantDbRepository) { AngajatDbRepository = angajatDbRepository; CursaDbRepository = cursaDbRepository; InscriereDbRepository = inscriereDbRepository; ParticipantDbRepository = participantDbRepository; }
static MainView GetInstance() { var participantRepository = new ParticipantDbRepository(); var probaRepository = new ProbaDbRepository(); var organizatorRepository = new OrganizatorDbRepository(); var inscriereRepository = new InscriereDbRepository(); var service = new Service(participantRepository, probaRepository, organizatorRepository, inscriereRepository); return(new MainView(service)); }