Ejemplo n.º 1
0
 public SubMemberApiResult(Member _m)
 {
     MemberId       = _m.MemberId;
     FirstName      = _m.FirstName;
     LastName       = _m.LastName;
     PGPDId         = _m.IdNumber;
     Email          = _m.Email;
     ContactNumbers = _m.PhoneNumbers.ToList().ConvertAll(x => new ContactNumberApiResult(x));
     Rank           = new RankApiResult(_m.Rank);
     Gender         = new GenderApiResult(_m.Gender);
     Race           = new RaceApiResult(_m.Race);
     DutyStatus     = new DutyStatusApiResult(_m.DutyStatus);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MemberApiResult"/> class.
 /// </summary>
 /// <param name="_member">A <see cref="Member"/> object.</param>
 public MemberApiResult(Member _member)
 {
     MemberId       = _member.MemberId;
     FirstName      = _member.FirstName;
     LastName       = _member.LastName;
     PGPDId         = _member.IdNumber;
     Email          = _member.Email;
     ContactNumbers = _member.PhoneNumbers.ToList().ConvertAll(x => new ContactNumberApiResult(x));
     Rank           = new RankApiResult(_member.Rank);
     Gender         = new GenderApiResult(_member.Gender);
     Race           = new RaceApiResult(_member.Race);
     DutyStatus     = new DutyStatusApiResult(_member.DutyStatus);
     Position       = new SubPositionApiResult(_member.Position);
 }