public void Delete(string id) { Comment comment = GetById(id); context.Entry(comment).State = EntityState.Deleted; Save(); }