private void TransferInfo(PersonalSubAttributeDto dto, PersonalSubAttribute entity) { if (dto.IsNew) { entity.Id = Guid.NewGuid().ToString(); } entity.FirstName = dto.FirstName; entity.LastName = dto.LastName; entity.Alias = dto.Alias; }
private void Add(PersonalSubAttributeDto personalSubAttributeDto) { var personalSubAttributeEntity = new PersonalSubAttribute(); TransferInfo(personalSubAttributeDto, personalSubAttributeEntity); _personsAttributeEntity.PersonalSubAttribute.Add(personalSubAttributeEntity); //update subAttrbutes ( }