public void Remove(RatingsPredictionSchedule item) { if (item == null) { throw new ArgumentNullException(nameof(item)); } var entity = _dbContext.Find <PredictionSchedule>(item.Id); if (entity != null) { _dbContext.Remove(entity); } }