protected override void ExecuteCreate() { var newAttendee = new Attendee { Name = Name }; if (newAttendee.IsValid()) { NewThing = newAttendee; } FireThingGood(newAttendee.IsValid()); }
public Attendee Update(Attendee atendee) { if (!atendee.IsValid()) { return(atendee); } return(_atendeeRepository.Update(atendee)); }
public Attendee Add(Attendee atendee) { if (!atendee.IsValid()) { return(atendee); } return(_atendeeRepository.Add(atendee)); }