public void Insert(T entity) { if (entity == null) { throw new ArgumentNullException("entity"); } entity.AddedDate = _time.Get(); entities.Add(entity); context.SaveChanges(); }