public static People MapToEntity(this PeopleDto dto) { var result = new People(dto.Document, dto.Name, dto.Email, (PeopleType)dto.Type); result.AddIdentity(dto.Id); return(result); }