Ejemplo n.º 1
0
        public void InscrieParticipant(string nume, int varsta, IList <ProbaDTO> probe)
        {
            //nume = nume + " " + prenume;
            int         id          = participantRepository.LastId();
            Participant participant = new Participant(id, nume, varsta);

            participantRepository.Save(participant);
            foreach (var dto in probe)
            {
                Inscriere inscriere = new Inscriere(new KeyValuePair <int, int>(id, dto.Proba.ID));
                inscriereRepository.Save(inscriere);
            }
            NotifyAll();
        }