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]); } }
public WatercoolerAttachment(DataRow row, WatercoolerAttachments watercoolerAttachments) : base(row, watercoolerAttachments) { _watercoolerAttachments = watercoolerAttachments; }