// // Insert a Regist // public int InsertRegist(Regist val) { try { using (var c = new Connect()) { c.BeginTrx(); var registMapper = new RegistDataMapper(c.GetConnection()); registMapper.SetTransaction(c.Transaction); int result = registMapper.Insert(val); c.Commit(); return result; } } catch (Exception exception) { throw new FaultException<ServerError>(new ServerError()); } }
public Participant() { Person = new Person(); Regist = new Regist(); // TODO: Complete member initialization }
public Participant(int id, Person person, Regist regist) { Person = person; Id = id; Regist = regist; }