Exemplo n.º 1
0
        private AddNewPerson createNewPerson(Person value)
        {
            return new AddNewPerson
            {
                Title = value.Title,
                ChipNumber = value.ChipNumber,
                ContactNumber = value.ContactNumber,
                CsaExpiryDate = value.CsaExpiryDate,
                CsaNumber = value.CsaNumber,
                Email = value.Email,
                FirstName = value.FirstName,
                Gender = value.Gender,
                IdNumber = value.IdNumber,
                MedicalAidName = value.MedicalAidName,
                MedicalAidNumber = value.MedicalAidNumber,
                Surname = value.Surname

            };
        }
Exemplo n.º 2
0
 public static void GenerateLetter(Person person, Race raceInfo, int entryFee)
 {
     var newLetter = new LetterInfo() { Distance = raceInfo.RaceDistance.ToString(), EmailAddress = person.Email, FirstName = person.FirstName, Surname = person.Surname, RaceDate = raceInfo.RaceDate.ToString(), RaceFee = entryFee.ToString(), RaceName = raceInfo.RaceName };
     GenerateLetter(newLetter);
 }
Exemplo n.º 3
0
 private UpdatePerson CreateUpdatePerson(int personId, Person value)
 {
     return new UpdatePerson()
     {
         Id = personId
         ,
         Person = new Person
         {
             Id = personId,
             Title = value.Title,
             ChipNumber = value.ChipNumber,
             ContactNumber = value.ContactNumber,
             CsaExpiryDate = value.CsaExpiryDate,
             CsaNumber = value.CsaNumber,
             Email = value.Email,
             FirstName = value.FirstName,
             Gender = value.Gender,
             IdNumber = value.IdNumber,
             MedicalAidName = value.MedicalAidName,
             MedicalAidNumber = value.MedicalAidNumber,
             Surname = value.Surname
         }
     };
 }
Exemplo n.º 4
0
 public void Update(Person person)
 {
     Title = person.Title;
     FirstName = person.FirstName;
     Surname = person.Surname;
     IdNumber = person.IdNumber;
     ContactNumber = person.ContactNumber;
     Email = person.Email;
     Gender = person.Gender;
     ChipNumber = person.ChipNumber;
     MedicalAidName = person.MedicalAidName;
     MedicalAidNumber = person.MedicalAidNumber;
 }