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