コード例 #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));
        }
コード例 #2
0
        IIdentity <Relationship> GetRelationshipIdentity(AddRelationshipModel model)
        {
            var values = GetIdAndParticipation(model?.RelationshipIdAndParticipation);

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

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