Ejemplo n.º 1
0
 private void onGymMemberTrainingRegistered(GymMemberTrainingRegistered obj)
 {
     if (_mTrainingregistrations.Count(p => p.Id == obj.RegistrationRecordId) > 0)
         return;
     _mTrainingregistrations.Add(new TrainingRegistration { Id = obj.RegistrationRecordId, When = obj.When });
 }
Ejemplo n.º 2
0
        public void EnterTrainingRegistration(Guid idregistrationrecord, DateTime dtDateTime )
        {
            //Check for duplicate
            if (_mTrainingregistrations.Count(p => p.Id == idregistrationrecord) > 0)
                return;

            var oEvent = new GymMemberTrainingRegistered(AggregateId, idregistrationrecord , dtDateTime );
            ApplyEvent<GymMemberTrainingRegistered>(oEvent);

            //Check for gold member status
            CheckGoldMemberStatus();
        }