public void UpdateComment(Data.Entities.Comment comment) { _context.Update(comment); _context.SaveChanges(); }
public void DeleteComment(Data.Entities.Comment comment) { _context.Comments.Remove(comment); _context.SaveChanges(); }
public void AddCommentToConspect(Data.Entities.Comment comment) { _context.Comments.Add(comment); _context.SaveChanges(); }