Пример #1
0
        public static ReceiverEntity GetReceiverById(long gid)
        {
            ReceiverEntity     result = new ReceiverEntity();
            ReceiverRepository mr     = new ReceiverRepository();
            ReceiverInfo       info   = mr.GetReceiverByKey(gid);

            result = TranslateReceiverEntity(info);
            return(result);
        }
Пример #2
0
        public static ReceiverEntity GetReceiverEntityById(long cid)
        {
            ReceiverEntity     result = new ReceiverEntity();
            ReceiverRepository mr     = new ReceiverRepository();
            ReceiverInfo       info   = mr.GetReceiverByKey(cid);

            if (info != null)
            {
                result = TranslateReceiverEntity(info);
                //获取联系人信息
                result.listContact = ContactService.GetContactByRule(UnionType.Receiver.ToString(), info.ReceiverID);
            }
            return(result);
        }