Ejemplo n.º 1
0
 public void AddParticipant(Person person)
 {
     var p = new Participant();
     p.Person = person;
     p.Regist = this;
     _list.Add(p);
 }
Ejemplo n.º 2
0
        public int InsertParticipant(Participant val)
        {
            try
            {
                using (var c = new Connect())
                {

                    c.BeginTrx();
                    var partiMapper = new ParticipantDataMapper(c.GetConnection());
                    partiMapper.SetTransaction(c.Transaction);
                    int ret = partiMapper.Insert(val);
                    c.Commit();
                    return ret;

                }
            }

            catch (Exception exception)
            {
                throw new FaultException<ServerError>(new ServerError());
            }
        }
Ejemplo n.º 3
0
 public void AddParticipant(Participant participant)
 {
     participant.Regist = this;
     _list.Add(participant);
 }