Example #1
0
 public bool InsertComment(Models.PageComment comment)
 {
     try
     {
         _context.PageComments.Add(comment);
         _context.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Example #2
0
 public void Save()
 {
     db.SaveChanges();
 }