public IActionResult PostComment(VComment c)
        {
            var comment = new DataLayer.Models.TComment
            {
                Id         = Guid.NewGuid(),
                Comment    = c.Comment,
                DatePosted = DateTime.Now,
                DomainId   = "gpucheck",
                Ip         = "11111111",
                Path       = "/",
                Name       = c.Name
            };

            var posted = business.PostComment(comment);

            return(Json(posted));
        }
Example #2
0
 public bool PostComment(DataLayer.Models.TComment c)
 {
     return(db.PostComment(c));
 }