public bool AddComment(PageComment comment)
 {
     try
     {
         db.PageComments.Add(comment);
         db.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
예제 #2
0
        public bool AddNewCommnet(PageComment cm)
        {
            try
            {
                db.pageComments.Add(cm);
                db.SaveChanges();

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }