예제 #1
0
        public void Create(Entity.Person person)
        {
            var personPO = _personRepository.FindById(person.PersonId);

            if (null != personPO)
            {
                throw new Exception("Person already exists");
            }
            person.Create();
            _personRepository.Insert(_personFactory.CreatePersonPO(person));
        }