コード例 #1
0
        public static PersonViewModel GetSourcePerson(int Id)
        {
            RelationRequestDAL Rel = new DAL.RelationRequestDAL(Id);
            var SourceUsers_Id     = Rel.RelationRequest.SourceUsers.Id;
            var GetPersonId        = RelationRequestDAL.GetPersonId(SourceUsers_Id);

            return(PersonViewModel.Find(GetPersonId));
        }
コード例 #2
0
        public static PersonViewModel GetTargetPerson(int Id)
        {
            RelationRequestDAL Rel = new DAL.RelationRequestDAL(Id);

            return(PersonViewModel.Find(RelationRequestDAL.GetPersonId(Rel.RelationRequest.TargetUsers.Id)));
        }