public void AddCommentsOnProduct(Comment comment) { var newComment = new Comment(); try { //if (ModelState.IsValid) //{ newComment.DomainEntityId = 1; newComment.CommentedBy = User.Identity.GetUserId(); newComment.CommentBody = comment.CommentBody; newComment.EntityRecordId = comment.EntityRecordId; newComment.CreateDate = DateTime.Now; _productServices.AddCommentsOnProduct(newComment); //} } catch (Exception) { throw; } }