public bool AddComment(Comment comment) { try { db.Comments.Add(comment); db.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public void Save() { db.SaveChanges(); }