RelationshipParticipant GetRelationshipParticipant(AddRelationshipModel model) { var values = GetIdAndParticipation(model?.RelationshipIdAndParticipation); if (values == null) { return(default(RelationshipParticipant)); } return((RelationshipParticipant)Enum.Parse(typeof(RelationshipParticipant), values.Item2, true)); }
IIdentity <Relationship> GetRelationshipIdentity(AddRelationshipModel model) { var values = GetIdAndParticipation(model?.RelationshipIdAndParticipation); if (values == null) { return(null); } return(Identity.Parse <Relationship>(values.Item1)); }