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 }; }
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); }
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 } }; }
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; }