Ejemplo n.º 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);
        }
Ejemplo n.º 2
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;
        }