Example #1
0
        /// <inheritdoc />
        public void Register(FamilyRegisterDto registerInfo)
        {
            var newFamily = new FamilyEntity
            {
                Name = registerInfo.Name
            };

            _familyRepository.Insert(newFamily);


            _familyMemberRepository.Insert(new FamilyMemberEntity()
            {
                FamilyId = newFamily.Id,
                Name     = registerInfo.Name,
                //Password=registerInfo.Password1// todo
                Phone = registerInfo.Phone,
            });

            _familyRepository.Commit();
        }