Esempio n. 1
0
        RelationshipParticipant GetRelationshipParticipant(AddRelationshipModel model)
        {
            var values = GetIdAndParticipation(model?.RelationshipIdAndParticipation);

            if (values == null)
            {
                return(default(RelationshipParticipant));
            }

            return((RelationshipParticipant)Enum.Parse(typeof(RelationshipParticipant), values.Item2, true));
        }
Esempio n. 2
0
        IIdentity <Relationship> GetRelationshipIdentity(AddRelationshipModel model)
        {
            var values = GetIdAndParticipation(model?.RelationshipIdAndParticipation);

            if (values == null)
            {
                return(null);
            }

            return(Identity.Parse <Relationship>(values.Item1));
        }