public WatercoolerLikProxy[] GetLikes(int msgid) { WatercoolerLikes likes = new WatercoolerLikes(TSAuthentication.GetLoginUser()); likes.LoadByMessageID(msgid); return(likes.GetWatercoolerLikProxies()); }
public WatercoolerLikProxy[] AddCommentLike(int MessageID) { WatercoolerLike wclikes = new WatercoolerLikes(TSAuthentication.GetLoginUser()).AddNewWatercoolerLik(); wclikes.MessageID = MessageID; wclikes.UserID = TSAuthentication.GetLoginUser().UserID; wclikes.DateCreated = DateTime.UtcNow; wclikes.Collection.Save(); WatercoolerLikes likes = new WatercoolerLikes(TSAuthentication.GetLoginUser()); likes.LoadByMessageID(MessageID); return(likes.GetWatercoolerLikProxies()); }