Example #1
0
        public static WatercoolerMsgItem GetWatercoolerMsgItem(LoginUser loginUser, int messageID)
        {
            WatercoolerMsg watercoolerMsg = new WatercoolerMsg(loginUser);

            watercoolerMsg.LoadByMessageID(messageID);
            if (watercoolerMsg.IsEmpty)
            {
                return(null);
            }
            else
            {
                return(watercoolerMsg[0]);
            }
        }
Example #2
0
 public WatercoolerMsgItem(DataRow row, WatercoolerMsg watercoolerMsg) : base(row, watercoolerMsg)
 {
     _watercoolerMsg = watercoolerMsg;
 }