예제 #1
0
파일: Regist.cs 프로젝트: ProjectoFinal/PS
 public void AddParticipant(Person person)
 {
     var p = new Participant();
     p.Person = person;
     p.Regist = this;
     _list.Add(p);
 }
예제 #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());
            }
        }
예제 #3
0
파일: Regist.cs 프로젝트: ProjectoFinal/PS
 public void AddParticipant(Participant participant)
 {
     participant.Regist = this;
     _list.Add(participant);
 }