コード例 #1
0
        public static WatercoolerAttachment GetWatercoolerAttachment(LoginUser loginUser, int messageID)
        {
            WatercoolerAttachments watercoolerAttachments = new WatercoolerAttachments(loginUser);

            watercoolerAttachments.LoadByMessageID(messageID);
            if (watercoolerAttachments.IsEmpty)
            {
                return(null);
            }
            else
            {
                return(watercoolerAttachments[0]);
            }
        }
コード例 #2
0
 public WatercoolerAttachment(DataRow row, WatercoolerAttachments watercoolerAttachments) : base(row, watercoolerAttachments)
 {
     _watercoolerAttachments = watercoolerAttachments;
 }