Ejemplo n.º 1
0
        public void AddCommentsOnSupplier(Comment comment)
        {
            var newComment = new Comment();

            try
            {
                //if (ModelState.IsValid)
                //{
                newComment.DomainEntityId = 2;
                newComment.CommentedBy = User.Identity.GetUserId();
                newComment.CommentBody = comment.CommentBody;
                newComment.EntityRecordId = comment.EntityRecordId;
                newComment.CreateDate = DateTime.Now;

                _productServices.AddCommentsOnSupplier(newComment);
                //}

            }
            catch (Exception)
            {

                throw;
            }


        }