Exemple #1
0
        private Comment addCommentRequest()
        {
            ArgPoint ap = DataContext as ArgPoint;

            if (ap == null)
            {
                return(null);
            }

            var c = new DbModel.Comment();

            c.Text   = DaoUtils.NEW_COMMENT;
            c.Person = SessionInfo.Get().getPerson(ap);
            ap.Comment.Add(c);
            return(c);
        }
        private Comment addCommentRequest()
        {
            ArgPoint ap = DataContext as ArgPoint;
            if (ap == null)
                return null;

            var c = new DbModel.Comment();
            c.Text = DaoUtils.NEW_COMMENT;
            c.Person = SessionInfo.Get().getPerson(ap);
            ap.Comment.Add(c);
            return c;
        }