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